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
49#define CLOCK_LFE cmuSelect_LFXO
67 .input = adcPosSelTEMP,
68 .reference = adcRef1V25,
69 .acq_time = adcAcqTime8
73 .input = adcPosSelAVDD,
74 .reference = adcRef5V,
75 .acq_time = adcAcqTime8
79#define ADC_DEV_NUMOF ARRAY_SIZE(adc_config)
80#define ADC_NUMOF ARRAY_SIZE(adc_channel_config)
91 .cmu = cmuClock_VDAC0,
95static const dac_chan_conf_t dac_channel_config[] = {
102#define DAC_DEV_NUMOF ARRAY_SIZE(dac_config)
103#define DAC_NUMOF ARRAY_SIZE(dac_channel_config)
115 .loc = I2C_ROUTELOC0_SDALOC_LOC7 |
116 I2C_ROUTELOC0_SCLLOC_LOC7,
117 .cmu = cmuClock_I2C0,
123#define I2C_NUMOF ARRAY_SIZE(i2c_config)
124#define I2C_0_ISR isr_i2c0
132#define RTT_FREQUENCY (1U)
146 .loc = USART_ROUTELOC0_RXLOC_LOC0 |
147 USART_ROUTELOC0_TXLOC_LOC0 |
148 USART_ROUTELOC0_CLKLOC_LOC0,
149 .cmu = cmuClock_USART3,
150 .irq = USART3_RX_IRQn
154#define SPI_NUMOF ARRAY_SIZE(spi_config)
167 .cmu = cmuClock_TIMER0
171 .cmu = cmuClock_TIMER1
179 .cmu = cmuClock_LETIMER0
183 .cmu = cmuClock_LETIMER0
185 .irq = LETIMER0_IRQn,
190#define TIMER_NUMOF ARRAY_SIZE(timer_config)
191#define TIMER_0_ISR isr_timer1
192#define TIMER_1_ISR isr_letimer0
204 .loc = USART_ROUTELOC0_RXLOC_LOC1 |
205 USART_ROUTELOC0_TXLOC_LOC1,
206 .cmu = cmuClock_USART0,
207 .irq = USART0_RX_IRQn
213 .loc = UART_ROUTELOC0_RXLOC_LOC4 |
214 UART_ROUTELOC0_TXLOC_LOC4,
215 .cmu = cmuClock_UART0,
220#define UART_NUMOF ARRAY_SIZE(uart_config)
221#define UART_0_ISR_RX isr_usart0_rx
222#define UART_1_ISR_RX isr_uart0_rx
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
#define UART0
UART0 register bank.
ADC channel configuration.
ADC device configuration.
ADC_TypeDef * dev
ADC device used.
DAC line configuration data.
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
Common configuration for EFM32 OTG FS peripheral.