27 #include "periph_cpu.h"
28 #include "cfg_clock_default.h"
30 #include "cfg_rtt_default.h"
31 #include "cfg_spi_default.h"
32 #include "cfg_timer_default.h"
46 .
dev = &SERCOM5->USART,
49 #ifdef MODULE_PERIPH_UART_HW_FC
60 .dev = &SERCOM0->USART,
63 #ifdef MODULE_PERIPH_UART_HW_FC
76 #define UART_0_ISR isr_sercom5
77 #define UART_1_ISR isr_sercom0
79 #define UART_NUMOF ARRAY_SIZE(uart_config)
88 #define ADC_PRESCALER ADC_CTRLB_PRESCALER_DIV512
90 #define ADC_NEG_INPUT ADC_INPUTCTRL_MUXNEG_GND
91 #define ADC_GAIN_FACTOR_DEFAULT ADC_INPUTCTRL_GAIN_DIV2
92 #define ADC_REF_DEFAULT ADC_REFCTRL_REFSEL_INTVCC1
100 {
GPIO_PIN(
PA, 8), ADC_INPUTCTRL_MUXPOS_PIN16},
101 {
GPIO_PIN(
PA, 9), ADC_INPUTCTRL_MUXPOS_PIN17},
102 {
GPIO_PIN(
PA, 10), ADC_INPUTCTRL_MUXPOS_PIN18},
103 {
GPIO_PIN(
PA, 11), ADC_INPUTCTRL_MUXPOS_PIN19},
104 {
GPIO_PIN(
PB, 5), ADC_INPUTCTRL_MUXPOS_PIN13},
109 #define ADC_NUMOF ARRAY_SIZE(adc_channels)
118 .
dev = &(SERCOM1->I2CM),
127 #define I2C_NUMOF ARRAY_SIZE(i2c_config)