24#include "periph_cpu.h"
37#define CLOCK_HF cmuSelect_HFXO
40#define CLOCK_CORE_DIV cmuClkDiv_1
43#define CLOCK_LFA cmuSelect_LFXO
46#define CLOCK_LFB cmuSelect_LFXO
64 .input = adcSingleInputTemp,
65 .reference = adcRef1V25,
66 .acq_time = adcAcqTime8
70 .input = adcSingleInputVDDDiv3,
71 .reference = adcRef1V25,
72 .acq_time = adcAcqTime8
76#define ADC_DEV_NUMOF ARRAY_SIZE(adc_config)
77#define ADC_NUMOF ARRAY_SIZE(adc_channel_config)
92static const dac_chan_conf_t dac_channel_config[] = {
99#define DAC_DEV_NUMOF ARRAY_SIZE(dac_config)
100#define DAC_NUMOF ARRAY_SIZE(dac_channel_config)
112 .loc = I2C_ROUTE_LOCATION_LOC1,
113 .cmu = cmuClock_I2C0,
121 .loc = I2C_ROUTE_LOCATION_LOC0,
122 .cmu = cmuClock_I2C1,
128#define I2C_NUMOF ARRAY_SIZE(i2c_config)
129#define I2C_0_ISR isr_i2c0
130#define I2C_1_ISR isr_i2c1
141 .loc = TIMER_ROUTE_LOCATION_LOC1
148 .cmu = cmuClock_TIMER3,
151 .channel = pwm_channel_config
155#define PWM_DEV_NUMOF ARRAY_SIZE(pwm_config)
156#define PWM_NUMOF ARRAY_SIZE(pwm_channel_config)
164#define RTT_FREQUENCY (1U)
178 .loc = USART_ROUTE_LOCATION_LOC1,
179 .cmu = cmuClock_USART1,
180 .irq = USART1_RX_IRQn
187 .loc = USART_ROUTE_LOCATION_LOC0,
188 .cmu = cmuClock_USART2,
189 .irq = USART2_RX_IRQn
193#define SPI_NUMOF ARRAY_SIZE(spi_config)
206 .cmu = cmuClock_TIMER0
210 .cmu = cmuClock_TIMER1
218 .cmu = cmuClock_LETIMER0
222 .cmu = cmuClock_LETIMER0
224 .irq = LETIMER0_IRQn,
229#define TIMER_NUMOF ARRAY_SIZE(timer_config)
230#define TIMER_0_ISR isr_timer1
231#define TIMER_1_ISR isr_letimer0
243 .loc = UART_ROUTE_LOCATION_LOC1,
244 .cmu = cmuClock_UART0,
251 .loc = LEUART_ROUTE_LOCATION_LOC0,
252 .cmu = cmuClock_LEUART0,
257#define UART_NUMOF ARRAY_SIZE(uart_config)
258#define UART_0_ISR_RX isr_uart0_rx
259#define UART_1_ISR_RX isr_leuart0
#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
#define UART0
UART0 register bank.
ADC channel configuration.
ADC device configuration.
DAC line configuration data.
I2C configuration structure.
PWM channel configuration.
PWM device configuration.
SPI device configuration.
Timer device configuration.
UART device configuration.
Common configuration for EFM32 OTG FS peripheral.