22 #include "periph_cpu.h"
31 #define CLOCK_CORECLOCK (48000000U)
41 .mclk = &MCLK->APBCMASK.reg,
42 .mclk_mask = MCLK_APBCMASK_TC0 | MCLK_APBCMASK_TC1,
43 .gclk_id = TC0_GCLK_ID,
45 .flags = TC_CTRLA_MODE_COUNT32,
50 #define TIMER_0_CHANNELS 2
51 #define TIMER_0_ISR isr_tc0
52 #define TIMER_NUMOF ARRAY_SIZE(timer_config)
61 .
dev = &SERCOM0->USART,
64 #ifdef MODULE_PERIPH_UART_HW_FC
77 #define UART_0_ISR isr_sercom0
79 #define UART_NUMOF ARRAY_SIZE(uart_config)
88 .
dev = &(SERCOM4->SPI),
98 #ifdef MODULE_PERIPH_DMA
99 .tx_trigger = SERCOM4_DMAC_ID_TX,
100 .rx_trigger = SERCOM4_DMAC_ID_RX,
104 .dev = &(SERCOM5->SPI),
114 #ifdef MODULE_PERIPH_DMA
122 #define SPI_NUMOF ARRAY_SIZE(spi_config)
131 .
dev = &(SERCOM1->I2CM),
140 #define I2C_NUMOF ARRAY_SIZE(i2c_config)
147 #define EXTERNAL_OSC32_SOURCE 1
148 #define INTERNAL_OSC32_SOURCE 0
149 #define ULTRA_LOW_POWER_INTERNAL_OSC_SOURCE 0
156 #ifndef RTT_FREQUENCY
157 #define RTT_FREQUENCY (32768U)
168 #define ADC_PRESCALER ADC_CTRLB_PRESCALER_DIV256
170 #define ADC_NEG_INPUT ADC_INPUTCTRL_MUXNEG(0x18u)
171 #define ADC_REF_DEFAULT ADC_REFCTRL_REFSEL_INTVCC2
175 {
GPIO_PIN(
PA, 6), ADC_INPUTCTRL_MUXPOS(ADC_INPUTCTRL_MUXPOS_AIN6)},
176 {
GPIO_PIN(
PA, 7), ADC_INPUTCTRL_MUXPOS(ADC_INPUTCTRL_MUXPOS_AIN7)},
177 {
GPIO_PIN(
PA, 10), ADC_INPUTCTRL_MUXPOS(ADC_INPUTCTRL_MUXPOS_AIN18)},
178 {
GPIO_PIN(
PA, 11), ADC_INPUTCTRL_MUXPOS(ADC_INPUTCTRL_MUXPOS_AIN19)},
179 {
GPIO_PIN(
PA, 2), ADC_INPUTCTRL_MUXPOS(ADC_INPUTCTRL_MUXPOS_AIN0)}
182 #define ADC_NUMOF ARRAY_SIZE(adc_channels)
194 .device = &USB->DEVICE,