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_LOC4 |
116 I2C_ROUTELOC0_SCLLOC_LOC4,
117 .cmu = cmuClock_I2C0,
125 .loc = I2C_ROUTELOC0_SDALOC_LOC0 |
126 I2C_ROUTELOC0_SCLLOC_LOC0,
127 .cmu = cmuClock_I2C1,
135 .loc = I2C_ROUTELOC0_SDALOC_LOC7 |
136 I2C_ROUTELOC0_SCLLOC_LOC7,
137 .cmu = cmuClock_I2C2,
143#define I2C_NUMOF ARRAY_SIZE(i2c_config)
144#define I2C_0_ISR isr_i2c0
145#define I2C_1_ISR isr_i2c1
146#define I2C_2_ISR isr_i2c2
154#define RTT_FREQUENCY (1U)
168 .loc = USART_ROUTELOC0_TXLOC_LOC0 |
169 USART_ROUTELOC0_RXLOC_LOC0 |
170 USART_ROUTELOC0_CLKLOC_LOC0,
171 .cmu = cmuClock_USART0,
172 .irq = USART0_RX_IRQn
176#define SPI_NUMOF ARRAY_SIZE(spi_config)
189 .cmu = cmuClock_WTIMER0
193 .cmu = cmuClock_WTIMER1
201 .cmu = cmuClock_TIMER0
205 .cmu = cmuClock_TIMER1
213 .cmu = cmuClock_LETIMER0
217 .cmu = cmuClock_LETIMER0
219 .irq = LETIMER0_IRQn,
224#define TIMER_NUMOF ARRAY_SIZE(timer_config)
225#define TIMER_0_ISR isr_wtimer1
226#define TIMER_1_ISR isr_timer1
227#define TIMER_2_ISR isr_letimer0
239 .loc = USART_ROUTELOC0_RXLOC_LOC4 |
240 USART_ROUTELOC0_TXLOC_LOC4,
241 .cmu = cmuClock_USART4,
242 .irq = USART4_RX_IRQn,
248 .loc = USART_ROUTELOC0_RXLOC_LOC4 |
249 USART_ROUTELOC0_TXLOC_LOC4,
250 .cmu = cmuClock_USART5,
251 .irq = USART5_RX_IRQn,
255#define UART_NUMOF ARRAY_SIZE(uart_config)
256#define UART_0_ISR_RX isr_usart4_rx
257#define UART_1_ISR_RX isr_usart5_rx
#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.
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.