Configuration of CPU peripherals for the Microchip SAM E54 Xplained Pro board.
More...
Configuration of CPU peripherals for the Microchip SAM E54 Xplained Pro board.
- Author
- Benjamin Valentin benja.nosp@m.min..nosp@m.valen.nosp@m.tin@.nosp@m.ml-pa.nosp@m..com
Definition in file periph_conf.h.
#include "periph_cpu.h"
Go to the source code of this file.
|
#define | USE_VREG_BUCK (1) |
| Enable the internal DC/DC converter The board is equipped with the necessary inductor.
|
|
#define | USE_XOSC_ONLY (0) |
| Use the external oscillator to source all fast clocks. More...
|
|
|
#define | XOSC1_FREQUENCY MHZ(12) |
|
|
#define | CLOCK_CORECLOCK MHZ(120) |
|
|
#define | EXTERNAL_OSC32_SOURCE 1 |
|
#define | ULTRA_LOW_POWER_INTERNAL_OSC_SOURCE 0 |
|
|
#define | TIMER_0_CHANNELS 2 |
|
#define | TIMER_0_ISR isr_tc0 |
|
#define | TIMER_1_CHANNELS 2 |
|
#define | TIMER_1_ISR isr_tc2 |
|
#define | TIMER_NUMOF ARRAY_SIZE(timer_config) |
|
static const tc32_conf_t | timer_config [] |
|
|
#define | UART_0_ISR isr_sercom2_2 |
|
#define | UART_0_ISR_TX isr_sercom2_0 |
|
#define | UART_1_ISR isr_sercom0_2 |
|
#define | UART_1_ISR_TX isr_sercom0_0 |
|
#define | UART_2_ISR isr_sercom5_2 |
|
#define | UART_2_ISR_TX isr_sercom5_0 |
|
#define | UART_3_ISR isr_sercom1_2 |
|
#define | UART_3_ISR_TX isr_sercom1_0 |
|
#define | UART_NUMOF ARRAY_SIZE(uart_config) |
|
static const uart_conf_t | uart_config [] |
|
|
#define | RTT_FREQUENCY (32768U) |
|
|
#define | ADC_PRESCALER ADC_CTRLA_PRESCALER_DIV128 |
|
#define | ADC_NEG_INPUT ADC_INPUTCTRL_MUXNEG(0x18u) |
|
#define | ADC_REF_DEFAULT ADC_REFCTRL_REFSEL_INTVCC1 |
|
#define | ADC_DEV ADC0 |
|
#define | ADC_NUMOF ARRAY_SIZE(adc_channels) |
|
static const adc_conf_chan_t | adc_channels [] |
|
◆ USE_XOSC_ONLY
#define USE_XOSC_ONLY (0) |
Use the external oscillator to source all fast clocks.
This allows us to use the buck voltage regulator for maximum power efficiency, but limits the maximum clock frequency to 12 MHz.
Definition at line 36 of file periph_conf.h.
◆ adc_channels
Initial value:= {
{
GPIO_PIN(
PA, 3), ADC_INPUTCTRL_MUXPOS(ADC_INPUTCTRL_MUXPOS_AIN1)},
{
GPIO_PIN(
PA, 5), ADC_INPUTCTRL_MUXPOS(ADC_INPUTCTRL_MUXPOS_AIN5)},
{
GPIO_PIN(
PA, 7), ADC_INPUTCTRL_MUXPOS(ADC_INPUTCTRL_MUXPOS_AIN7)}
}
Definition at line 324 of file periph_conf.h.
◆ i2c_config
Initial value:= {
{
.dev = &(SERCOM3->I2CM),
},
{
.dev = &(SERCOM7->I2CM),
}
}
Definition at line 264 of file periph_conf.h.
◆ pwm_chan0_config
◆ pwm_config
Initial value:= {
.chan = pwm_chan0_config,
},
}
Definition at line 203 of file periph_conf.h.
◆ sam_usbdev_config
Initial value:= {
{
.device = &USB->DEVICE,
}
}
Definition at line 301 of file periph_conf.h.
◆ timer_config
Initial value:= {
{
.dev = TC0,
.irq = TC0_IRQn,
.mclk = &MCLK->APBAMASK.reg,
.mclk_mask = MCLK_APBAMASK_TC0 | MCLK_APBAMASK_TC1,
.gclk_id = TC0_GCLK_ID,
.flags = TC_CTRLA_MODE_COUNT32,
},
{
.dev = TC2,
.irq = TC2_IRQn,
.mclk = &MCLK->APBBMASK.reg,
.mclk_mask = MCLK_APBBMASK_TC2 | MCLK_APBBMASK_TC3,
.gclk_id = TC2_GCLK_ID,
.flags = TC_CTRLA_MODE_COUNT32,
}
}
Definition at line 77 of file periph_conf.h.