23 #include "periph_cpu.h"
32 #define CLOCK_CORECLOCK (48000000U)
38 #define USE_VREG_BUCK (1)
48 .mclk = &MCLK->APBCMASK.reg,
49 .mclk_mask = MCLK_APBCMASK_TC0 | MCLK_APBCMASK_TC1,
50 .gclk_id = TC0_GCLK_ID,
52 .flags = TC_CTRLA_MODE_COUNT32,
57 #define TIMER_0_CHANNELS 2
58 #define TIMER_0_ISR isr_tc0
59 #define TIMER_NUMOF (sizeof(timer_config)/sizeof(timer_config[0]))
69 .
dev = &SERCOM0->USART,
72 #ifdef MODULE_PERIPH_UART_HW_FC
85 #define UART_0_ISR isr_sercom0
87 #define UART_NUMOF (sizeof(uart_config) / sizeof(uart_config[0]))
96 .
dev = &(SERCOM4->SPI),
106 #ifdef MODULE_PERIPH_DMA
107 .tx_trigger = SERCOM4_DMAC_ID_TX,
108 .rx_trigger = SERCOM4_DMAC_ID_RX,
113 #define SPI_NUMOF (sizeof(spi_config) / sizeof(spi_config[0]))
122 .
dev = &(SERCOM1->I2CM),
131 #define I2C_NUMOF (sizeof(i2c_config) / sizeof(i2c_config[0]))
138 #define EXTERNAL_OSC32_SOURCE 1
139 #define INTERNAL_OSC32_SOURCE 0
140 #define ULTRA_LOW_POWER_INTERNAL_OSC_SOURCE 0
147 #ifndef RTT_FREQUENCY
148 #define RTT_FREQUENCY (32768U)
158 #define ADC_PRESCALER ADC_CTRLB_PRESCALER_DIV256
160 #define ADC_NEG_INPUT ADC_INPUTCTRL_MUXNEG(0x18u)
161 #define ADC_REF_DEFAULT ADC_REFCTRL_REFSEL_INTVCC2
165 {
GPIO_PIN(
PA, 6), ADC_INPUTCTRL_MUXPOS(ADC_INPUTCTRL_MUXPOS_AIN6)},
166 {
GPIO_PIN(
PA, 7), ADC_INPUTCTRL_MUXPOS(ADC_INPUTCTRL_MUXPOS_AIN7)}
170 #define ADC_NUMOF ARRAY_SIZE(adc_channels)
182 .device = &USB->DEVICE,