23#include "periph_cpu.h"
33#define CLOCK_CORECLOCK MHZ(48)
39#define USE_VREG_BUCK (1)
49 .mclk = &MCLK->APBCMASK.reg,
50 .mclk_mask = MCLK_APBCMASK_TC0_Msk | MCLK_APBCMASK_TC1_Msk,
51 .gclk_id = TC0_GCLK_ID,
53 .flags = TC_CTRLA_MODE_COUNT32,
58 .mclk = &MCLK->APBCMASK.reg,
59 .mclk_mask = MCLK_APBCMASK_TC2_Msk | MCLK_APBCMASK_TC3_Msk,
60 .gclk_id = TC2_GCLK_ID,
62 .flags = TC_CTRLA_MODE_COUNT32,
67#define TIMER_0_CHANNELS 2
68#define TIMER_0_ISR isr_tc0
69#define TIMER_1_CHANNELS 2
70#define TIMER_1_ISR isr_tc2
71#define TIMER_NUMOF ARRAY_SIZE(timer_config)
80 .
dev = &SERCOM0->USART,
83#ifdef MODULE_PERIPH_UART_HW_FC
94 .dev = &SERCOM3->USART,
97#ifdef MODULE_PERIPH_UART_HW_FC
110#define UART_0_ISR isr_sercom0
111#define UART_1_ISR isr_sercom3
113#define UART_NUMOF ARRAY_SIZE(uart_config)
122 .
dev = &(SERCOM4->SPI),
132#ifdef MODULE_PERIPH_DMA
133 .tx_trigger = SERCOM4_DMAC_ID_TX,
134 .rx_trigger = SERCOM4_DMAC_ID_RX,
138 .dev = &(SERCOM5->SPI),
148#ifdef MODULE_PERIPH_DMA
155#define SPI_NUMOF ARRAY_SIZE(spi_config)
164 .
dev = &(SERCOM1->I2CM),
173#define I2C_NUMOF ARRAY_SIZE(i2c_config)
180#define EXTERNAL_OSC32_SOURCE 1
181#define INTERNAL_OSC32_SOURCE 0
182#define ULTRA_LOW_POWER_INTERNAL_OSC_SOURCE 0
190#define RTT_FREQUENCY (32768U)
200#define ADC_PRESCALER ADC_CTRLB_PRESCALER_DIV256
202#define ADC_NEG_INPUT ADC_INPUTCTRL_MUXNEG(0x18u)
203#define ADC_REF_DEFAULT ADC_REFCTRL_REFSEL_INTVCC2
211#define ADC_NUMOF ARRAY_SIZE(adc_channels)
223 .device = &USB->DEVICE,
224 .gclk_src = SAM0_GCLK_48MHZ,
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
@ UART_PAD_RX_1
select pad 1
@ I2C_FLAG_NONE
No flags set.
@ SPI_PAD_MISO_0
use pad 0 for MISO line
#define DMA_TRIGGER_DISABLED
Indicates that the peripheral doesn't utilize the DMA controller.
@ UART_FLAG_NONE
No flags set.
@ UART_PAD_TX_0
select pad 0
@ GPIO_MUX_D
select peripheral function D
@ GPIO_MUX_G
select peripheral function G
@ GPIO_MUX_C
select peripheral function C
@ GPIO_MUX_F
select peripheral function F
@ SPI_PAD_MOSI_2_SCK_3
use pad 2 for MOSI, pad 3 for SCK
#define ADC_INPUTCTRL_MUXPOS_PA07
Alias for PIN7.
#define ADC_INPUTCTRL_MUXPOS_PA06
Alias for PIN6.
#define SAM0_GCLK_MAIN
120 MHz main clock
#define SAM0_GCLK_TIMER
4-8 MHz clock for xTimer
ADC Channel Configuration.
uint32_t inputctrl
ADC channel pin multiplexer value
I2C configuration structure.
TWI_t * dev
Pointer to hardware module registers.
USB peripheral parameters.
SPI device configuration.
SPI_t * dev
pointer to the used SPI device
Timer device configuration.
Tc * dev
pointer to the used Timer device
UART device configuration.
USART_t * dev
pointer to the used UART device