25 #include "periph_cpu.h"
26 #include "cfg_clock_default.h"
28 #include "cfg_rtt_default.h"
29 #include "cfg_timer_default.h"
43 .
dev = &SERCOM5->USART,
46 #ifdef MODULE_PERIPH_UART_HW_FC
57 .dev = &SERCOM2->USART,
60 #ifdef MODULE_PERIPH_UART_HW_FC
73 #define UART_0_ISR isr_sercom5
74 #define UART_1_ISR isr_sercom2
76 #define UART_NUMOF ARRAY_SIZE(uart_config)
85 #define ADC_PRESCALER ADC_CTRLB_PRESCALER_DIV512
87 #define ADC_NEG_INPUT ADC_INPUTCTRL_MUXNEG_GND
88 #define ADC_GAIN_FACTOR_DEFAULT ADC_INPUTCTRL_GAIN_DIV2
89 #define ADC_REF_DEFAULT ADC_REFCTRL_REFSEL_INTVCC1
100 {
GPIO_PIN(
PA, 9), ADC_INPUTCTRL_MUXPOS_PIN17},
101 {
GPIO_PIN(
PA,10), ADC_INPUTCTRL_MUXPOS_PIN18},
102 {
GPIO_PIN(
PA,11), ADC_INPUTCTRL_MUXPOS_PIN19},
105 {
GPIO_PIN(
PB, 2), ADC_INPUTCTRL_MUXPOS_PIN10},
106 {
GPIO_PIN(
PB, 3), ADC_INPUTCTRL_MUXPOS_PIN11},
112 #define ADC_NUMOF ARRAY_SIZE(adc_channels)
121 .
dev = &SERCOM0->SPI,
131 #ifdef MODULE_PERIPH_DMA
132 .tx_trigger = SERCOM0_DMAC_ID_TX,
133 .rx_trigger = SERCOM0_DMAC_ID_RX,
138 #define SPI_NUMOF ARRAY_SIZE(spi_config)
147 .
dev = &(SERCOM3->I2CM),
156 #define I2C_NUMOF ARRAY_SIZE(i2c_config)