25 #include "periph_cpu.h"
26 #include "cfg_clock_default.h"
28 #include "cfg_rtt_default.h"
29 #include "cfg_spi_default.h"
30 #include "cfg_timer_default.h"
44 .
dev = &SERCOM0->USART,
47 #ifdef MODULE_PERIPH_UART_HW_FC
58 .dev = &SERCOM5->USART,
61 #ifdef MODULE_PERIPH_UART_HW_FC
72 .dev = &SERCOM4->USART,
75 #ifdef MODULE_PERIPH_UART_HW_FC
86 .dev = &SERCOM1->USART,
89 #ifdef MODULE_PERIPH_UART_HW_FC
102 #define UART_0_ISR isr_sercom0
103 #define UART_1_ISR isr_sercom5
104 #define UART_2_ISR isr_sercom4
105 #define UART_3_ISR isr_sercom1
107 #define UART_NUMOF ARRAY_SIZE(uart_config)
116 #define ADC_PRESCALER ADC_CTRLB_PRESCALER_DIV512
118 #define ADC_NEG_INPUT ADC_INPUTCTRL_MUXNEG_GND
119 #define ADC_GAIN_FACTOR_DEFAULT ADC_INPUTCTRL_GAIN_DIV2
120 #define ADC_REF_DEFAULT ADC_REFCTRL_REFSEL_INTVCC1
131 {
GPIO_PIN(
PB, 7), ADC_INPUTCTRL_MUXPOS_PIN15},
132 {
GPIO_PIN(
PB, 6), ADC_INPUTCTRL_MUXPOS_PIN14},
133 {
GPIO_PIN(
PB, 5), ADC_INPUTCTRL_MUXPOS_PIN13},
134 {
GPIO_PIN(
PB, 4), ADC_INPUTCTRL_MUXPOS_PIN12},
136 {
GPIO_PIN(
PB, 3), ADC_INPUTCTRL_MUXPOS_PIN11},
137 {
GPIO_PIN(
PB, 2), ADC_INPUTCTRL_MUXPOS_PIN10},
143 #define ADC_NUMOF ARRAY_SIZE(adc_channels)
182 #define PWM_NUMOF ARRAY_SIZE(pwm_config)
191 .
dev = &(SERCOM2->I2CM),
200 #define I2C_NUMOF ARRAY_SIZE(i2c_config)