22 #include "periph_cpu.h"
23 #include "cfg_clock_default.h"
25 #include "cfg_rtt_default.h"
26 #include "cfg_spi_default.h"
27 #include "cfg_timer_default.h"
40 .
dev = &SERCOM5->USART,
43 #ifdef MODULE_PERIPH_UART_HW_FC
54 .dev = &SERCOM4->USART,
57 #ifdef MODULE_PERIPH_UART_HW_FC
68 .dev = &SERCOM0->USART,
71 #ifdef MODULE_PERIPH_UART_HW_FC
84 #define UART_0_ISR isr_sercom5
85 #define UART_1_ISR isr_sercom4
86 #define UART_2_ISR isr_sercom0
88 #define UART_NUMOF ARRAY_SIZE(uart_config)
97 #define ADC_PRESCALER ADC_CTRLB_PRESCALER_DIV512
99 #define ADC_NEG_INPUT ADC_INPUTCTRL_MUXNEG_GND
100 #define ADC_GAIN_FACTOR_DEFAULT ADC_INPUTCTRL_GAIN_DIV2
101 #define ADC_REF_DEFAULT ADC_REFCTRL_REFSEL_INTVCC1
107 {
GPIO_PIN(
PB, 2), ADC_INPUTCTRL_MUXPOS_PIN10},
108 {
GPIO_PIN(
PB, 3), ADC_INPUTCTRL_MUXPOS_PIN11},
109 {
GPIO_PIN(
PA, 8), ADC_INPUTCTRL_MUXPOS_PIN16},
110 {
GPIO_PIN(
PA, 9), ADC_INPUTCTRL_MUXPOS_PIN17},
112 {
GPIO_PIN(
PA, 10), ADC_INPUTCTRL_MUXPOS_PIN18},
113 {
GPIO_PIN(
PA, 11), ADC_INPUTCTRL_MUXPOS_PIN19},
114 {
GPIO_PIN(
PB, 5), ADC_INPUTCTRL_MUXPOS_PIN13},
117 #define ADC_NUMOF ARRAY_SIZE(adc_channels)
126 .
dev = &(SERCOM1->I2CM),
135 .dev = &(SERCOM2->I2CM),
144 #define I2C_NUMOF ARRAY_SIZE(i2c_config)