20#include "periph_cpu.h"
32#define CLOCK_HF cmuSelect_HFXO
35#define CLOCK_CORE_DIV cmuClkDiv_1
38#define CLOCK_LFA cmuSelect_LFXO
41#define CLOCK_LFB cmuSelect_LFXO
44#define CLOCK_LFE cmuSelect_LFXO
52#ifdef EMU_DCDCINIT_OFF
53#error "This option will soft-brick your board. Please remove it."
71 .input = adcPosSelTEMP,
72 .reference = adcRef1V25,
73 .acq_time = adcAcqTime8
77 .input = adcPosSelAVDD,
78 .reference = adcRef5V,
79 .acq_time = adcAcqTime8
83#define ADC_DEV_NUMOF ARRAY_SIZE(adc_config)
84#define ADC_NUMOF ARRAY_SIZE(adc_channel_config)
96 .loc = I2C_ROUTELOC0_SDALOC_LOC15 |
97 I2C_ROUTELOC0_SCLLOC_LOC15,
101 .use_internal_pull_ups =
true
105#define I2C_NUMOF ARRAY_SIZE(i2c_config)
106#define I2C_0_ISR isr_i2c0
114#define RTT_FREQUENCY (1U)
128 .loc = USART_ROUTELOC0_RXLOC_LOC11 |
129 USART_ROUTELOC0_TXLOC_LOC11 |
130 USART_ROUTELOC0_CLKLOC_LOC11,
131 .cmu = cmuClock_USART1,
132 .irq = USART1_RX_IRQn
136#define SPI_NUMOF ARRAY_SIZE(spi_config)
149 .cmu = cmuClock_TIMER0
153 .cmu = cmuClock_TIMER1
161 .cmu = cmuClock_LETIMER0
165 .cmu = cmuClock_LETIMER0
167 .irq = LETIMER0_IRQn,
172#define TIMER_NUMOF ARRAY_SIZE(timer_config)
173#define TIMER_0_ISR isr_timer1
174#define TIMER_1_ISR isr_letimer0
186 .loc = USART_ROUTELOC0_RXLOC_LOC0 |
187 USART_ROUTELOC0_TXLOC_LOC0,
188 .cmu = cmuClock_USART0,
189 .irq = USART0_RX_IRQn
195 .loc = LEUART_ROUTELOC0_RXLOC_LOC18 |
196 LEUART_ROUTELOC0_TXLOC_LOC18,
197 .cmu = cmuClock_LEUART0,
202#define UART_NUMOF ARRAY_SIZE(uart_config)
203#define UART_0_ISR_RX isr_usart0_rx
204#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.
I2C configuration structure.
SPI device configuration.
Timer device configuration.
UART device configuration.