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"
31#include "cfg_usbdev_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
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)
#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.
#define ARRAY_SIZE(a)
Calculate the number of elements in a static array.
@ UART_PAD_RX_1
select pad 1
@ I2C_FLAG_NONE
No flags set.
@ UART_FLAG_NONE
No flags set.
@ UART_PAD_TX_0_RTS_2_CTS_3
TX is pad 0, on top RTS on pad 2 and CTS on pad 3.
@ UART_PAD_TX_2
select pad 2
#define TCC_CONFIG(tim)
Static initializer for TCC timer configuration.
@ GPIO_MUX_E
select peripheral function E
@ GPIO_MUX_D
select peripheral function D
@ GPIO_MUX_C
select peripheral function C
@ GPIO_MUX_F
select peripheral function F
#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_PB09
Alias for PIN3.
#define ADC_INPUTCTRL_MUXPOS_PB01
Alias for PIN9.
#define ADC_INPUTCTRL_MUXPOS_PA07
Alias for PIN7.
#define ADC_INPUTCTRL_MUXPOS_PB06
Alias for PIN14.
#define ADC_INPUTCTRL_MUXPOS_PA04
Alias for PIN4.
#define ADC_INPUTCTRL_MUXPOS_PB04
Alias for PIN12.
#define ADC_INPUTCTRL_MUXPOS_PB03
Alias for PIN11.
#define ADC_INPUTCTRL_MUXPOS_PA06
Alias for PIN6.
#define ADC_INPUTCTRL_MUXPOS_PB05
Alias for PIN13.
#define ADC_INPUTCTRL_MUXPOS_PA02
ADC pin aliases.
#define ADC_INPUTCTRL_MUXPOS_PB07
Alias for PIN15.
#define ADC_INPUTCTRL_MUXPOS_PB00
Alias for PIN8.
#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.
PWM channel configuration data structure.
PWM device configuration.
UART device configuration.
USART_t * dev
pointer to the used UART device