25#include "periph_cpu.h"
26#include "cfg_clock_default.h"
28#include "cfg_rtt_default.h"
29#include "cfg_timer_default.h"
30#include "cfg_usbdev_default.h"
42 .
dev = &SERCOM5->USART,
45#ifdef MODULE_PERIPH_UART_HW_FC
57 .dev = &SERCOM2->USART,
60#ifdef MODULE_PERIPH_UART_HW_FC
73#define UART_0_ISR isr_sercom5
74#define UART_1_ISR isr_sercom2
76#define UART_NUMOF ARRAY_SIZE(uart_config)
85#define ADC_PRESCALER ADC_CTRLB_PRESCALER_DIV512
87#define ADC_NEG_INPUT ADC_INPUTCTRL_MUXNEG_GND
88#define ADC_GAIN_FACTOR_DEFAULT ADC_INPUTCTRL_GAIN_DIV2
89#define ADC_REF_DEFAULT ADC_REFCTRL_REFSEL_INTVCC1
111#define ADC_NUMOF ARRAY_SIZE(adc_channels)
120 .
dev = &SERCOM0->SPI,
130#ifdef MODULE_PERIPH_DMA
131 .tx_trigger = SERCOM0_DMAC_ID_TX,
132 .rx_trigger = SERCOM0_DMAC_ID_RX,
137#define SPI_NUMOF ARRAY_SIZE(spi_config)
146 .
dev = &(SERCOM3->I2CM),
155#define I2C_NUMOF ARRAY_SIZE(i2c_config)
#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
Default RTC configuration for SODAQ boards.
@ UART_PAD_RX_1
select pad 1
@ I2C_FLAG_NONE
No flags set.
@ SPI_PAD_MISO_0
use pad 0 for MISO line
@ UART_FLAG_NONE
No flags set.
@ UART_PAD_TX_0
select pad 0
@ GPIO_MUX_D
select peripheral function D
@ GPIO_MUX_C
select peripheral function C
@ SPI_PAD_MOSI_2_SCK_3
use pad 2 for MOSI, pad 3 for SCK
#define ADC_INPUTCTRL_MUXPOS_PA05
Alias for PIN5.
#define ADC_INPUTCTRL_MUXPOS_PB08
Alias for PIN2.
#define ADC_INPUTCTRL_MUXPOS_PB02
Alias for PIN10.
#define ADC_INPUTCTRL_MUXPOS_PA10
Alias for PIN18.
#define ADC_INPUTCTRL_MUXPOS_PA11
Alias for PIN19.
#define ADC_INPUTCTRL_MUXPOS_PA08
Alias for PIN16.
#define ADC_INPUTCTRL_MUXPOS_PB09
Alias for PIN3.
#define ADC_INPUTCTRL_MUXPOS_PA09
Alias for PIN17.
#define ADC_INPUTCTRL_MUXPOS_PA07
Alias for PIN7.
#define ADC_INPUTCTRL_MUXPOS_PB03
Alias for PIN11.
#define ADC_INPUTCTRL_MUXPOS_PA06
Alias for PIN6.
#define ADC_INPUTCTRL_MUXPOS_PA02
ADC pin aliases.
#define ADC_INPUTCTRL_MUXPOS_PA03
Alias for PIN1.
#define SAM0_GCLK_MAIN
120 MHz main clock
ADC Channel Configuration.
uint32_t inputctrl
ADC channel pin multiplexer value
I2C configuration structure.
TWI_t * dev
Pointer to hardware module registers.
SPI device configuration.
SPI_t * dev
pointer to the used SPI device
UART device configuration.
USART_t * dev
pointer to the used UART device