24#include "periph_cpu.h"
36#define CLOCK_HF cmuSelect_HFXO
39#define CLOCK_CORE_DIV cmuClkDiv_1
42#define CLOCK_LFA cmuSelect_LFXO
45#define CLOCK_LFB cmuSelect_LFXO
48#define CLOCK_LFE cmuSelect_LFXO
66 .input = adcPosSelTEMP,
67 .reference = adcRef1V25,
68 .acq_time = adcAcqTime8
72 .input = adcPosSelAVDD,
73 .reference = adcRef5V,
74 .acq_time = adcAcqTime8
78#define ADC_DEV_NUMOF ARRAY_SIZE(adc_config)
79#define ADC_NUMOF ARRAY_SIZE(adc_channel_config)
91 .loc = I2C_ROUTELOC0_SDALOC_LOC15 |
92 I2C_ROUTELOC0_SCLLOC_LOC15,
99#define I2C_NUMOF ARRAY_SIZE(i2c_config)
100#define I2C_0_ISR isr_i2c0
108#define RTT_FREQUENCY (1U)
122 .loc = USART_ROUTELOC0_RXLOC_LOC1 |
123 USART_ROUTELOC0_TXLOC_LOC1 |
124 USART_ROUTELOC0_CLKLOC_LOC1,
125 .cmu = cmuClock_USART2,
126 .irq = USART2_RX_IRQn
130#define SPI_NUMOF ARRAY_SIZE(spi_config)
143 .cmu = cmuClock_WTIMER0
147 .cmu = cmuClock_WTIMER1
155 .cmu = cmuClock_TIMER0
159 .cmu = cmuClock_TIMER1
167 .cmu = cmuClock_LETIMER0
171 .cmu = cmuClock_LETIMER0
173 .irq = LETIMER0_IRQn,
178#define TIMER_NUMOF ARRAY_SIZE(timer_config)
179#define TIMER_0_ISR isr_wtimer1
180#define TIMER_1_ISR isr_timer1
181#define TIMER_2_ISR isr_letimer0
193 .loc = USART_ROUTELOC0_RXLOC_LOC0 |
194 USART_ROUTELOC0_TXLOC_LOC0,
195 .cmu = cmuClock_USART0,
196 .irq = USART0_RX_IRQn
202 .loc = LEUART_ROUTELOC0_RXLOC_LOC18 |
203 LEUART_ROUTELOC0_TXLOC_LOC18,
204 .cmu = cmuClock_LEUART0,
209#define UART_NUMOF ARRAY_SIZE(uart_config)
210#define UART_0_ISR_RX isr_usart0_rx
211#define UART_1_ISR_RX isr_leuart0
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
ADC channel configuration.
ADC device configuration.
ADC_TypeDef * dev
ADC device used.
I2C configuration structure.
TWI_t * dev
Pointer to hardware module registers.
SPI device configuration.
USART_TypeDef * dev
USART device used.
Timer device configuration.
timer_dev_t prescaler
the lower neighboring timer (not initialized for LETIMER)
void * dev
TIMER_TypeDef or LETIMER_TypeDef device used.
UART device configuration.
USART_t * dev
pointer to the used UART device