Peripheral MCU configuration for the Atmel SAM L21 Xplained Pro board.
More...
#include "periph_cpu.h"
Go to the source code of this file.
#define | CLOCK_CORECLOCK (48000000U) |
| GCLK reference speed.
|
|
#define | USE_VREG_BUCK (1) |
| Enable the internal DC/DC converter The board is equipped with the necessary inductor.
|
|
|
#define | TIMER_0_CHANNELS 2 |
|
#define | TIMER_0_ISR isr_tc0 |
|
#define | TIMER_NUMOF ARRAY_SIZE(timer_config) |
|
static const tc32_conf_t | timer_config [] |
|
|
#define | EXTERNAL_OSC32_SOURCE 1 |
|
#define | INTERNAL_OSC32_SOURCE 0 |
|
#define | ULTRA_LOW_POWER_INTERNAL_OSC_SOURCE 0 |
|
|
#define | RTT_FREQUENCY (32768U) |
|
|
#define | ADC_PRESCALER ADC_CTRLB_PRESCALER_DIV256 |
|
#define | ADC_NEG_INPUT ADC_INPUTCTRL_MUXNEG(0x18u) |
|
#define | ADC_REF_DEFAULT ADC_REFCTRL_REFSEL_INTVCC2 |
|
#define | ADC_NUMOF ARRAY_SIZE(adc_channels) |
|
static const adc_conf_chan_t | adc_channels [] |
|
|
#define | DAC_CLOCK SAM0_GCLK_8MHZ |
|
#define | DAC_VREF DAC_CTRLB_REFSEL_VDDANA |
|
◆ adc_channels
Initial value:= {
{
GPIO_PIN(
PA, 10), ADC_INPUTCTRL_MUXPOS(ADC_INPUTCTRL_MUXPOS_AIN18)},
{
GPIO_PIN(
PA, 11), ADC_INPUTCTRL_MUXPOS(ADC_INPUTCTRL_MUXPOS_AIN19)},
{
GPIO_PIN(
PA, 2), ADC_INPUTCTRL_MUXPOS(ADC_INPUTCTRL_MUXPOS_AIN0)}
}
Definition at line 210 of file periph_conf.h.
◆ i2c_config
Initial value:= {
{
.dev = &(SERCOM2->I2CM),
}
}
Definition at line 166 of file periph_conf.h.
◆ pwm_chan0_config
◆ pwm_config
Initial value:= {
.chan = pwm_chan0_config,
},
}
Definition at line 122 of file periph_conf.h.
◆ sam_usbdev_config
Initial value:= {
{
.device = &USB->DEVICE,
}
}
Definition at line 234 of file periph_conf.h.
◆ spi_config
Initial value:= {
{
.dev = &(SERCOM0->SPI),
}
}
Definition at line 140 of file periph_conf.h.
◆ timer_config
Initial value:= {
{
.dev = TC0,
.irq = TC0_IRQn,
.mclk = &MCLK->APBCMASK.reg,
.mclk_mask = MCLK_APBCMASK_TC0 | MCLK_APBCMASK_TC1,
.gclk_id = TC0_GCLK_ID,
.flags = TC_CTRLA_MODE_COUNT32,
}
}
Definition at line 47 of file periph_conf.h.
◆ uart_config
Initial value:= {
{
.dev = &SERCOM3->USART,
},
{
.dev = &SERCOM4->USART,
}
}
Definition at line 69 of file periph_conf.h.