23 #include "periph_cpu.h"
35 #define CLOCK_HF cmuSelect_HFRCO
37 #ifndef CLOCK_CORE_DIV
38 #define CLOCK_CORE_DIV cmuClkDiv_1
41 #define CLOCK_LFA cmuSelect_LFRCO
44 #define CLOCK_LFB cmuSelect_LFRCO
47 #define CLOCK_LFE cmuSelect_LFRCO
65 .input = adcPosSelTEMP,
66 .reference = adcRef1V25,
67 .acq_time = adcAcqTime8
71 .input = adcPosSelAVDD,
72 .reference = adcRef5V,
73 .acq_time = adcAcqTime8
77 #define ADC_DEV_NUMOF ARRAY_SIZE(adc_config)
78 #define ADC_NUMOF ARRAY_SIZE(adc_channel_config)
86 #define RTT_FREQUENCY (1U)
100 .loc = USART_ROUTELOC0_RXLOC_LOC21 |
101 USART_ROUTELOC0_TXLOC_LOC23 |
102 USART_ROUTELOC0_CLKLOC_LOC19,
103 .cmu = cmuClock_USART1,
104 .irq = USART1_RX_IRQn
108 #define SPI_NUMOF ARRAY_SIZE(spi_config)
122 .cmu = cmuClock_TIMER0
126 .cmu = cmuClock_TIMER1
134 .cmu = cmuClock_LETIMER0
138 .cmu = cmuClock_LETIMER0
140 .irq = LETIMER0_IRQn,
145 #define TIMER_0_ISR isr_timer1
146 #define TIMER_1_ISR isr_letimer0
148 #define TIMER_NUMOF ARRAY_SIZE(timer_config)
155 #ifndef EFM32_USE_LEUART
156 #define EFM32_USE_LEUART 0
161 #ifndef STDIO_UART_BAUDRATE
162 #define STDIO_UART_BAUDRATE (9600)
170 .loc = USART_ROUTELOC0_RXLOC_LOC9 |
171 USART_ROUTELOC0_TXLOC_LOC9,
172 .cmu = cmuClock_LEUART0,
176 #define UART_0_ISR_RX isr_leuart0
185 .loc = USART_ROUTELOC0_RXLOC_LOC9 |
186 USART_ROUTELOC0_TXLOC_LOC9,
187 .cmu = cmuClock_USART0,
188 .irq = USART0_RX_IRQn
191 #define UART_0_ISR_RX isr_usart0_rx
194 #define UART_NUMOF ARRAY_SIZE(uart_config)
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
static const uart_conf_t uart_config[]
UART configuration.
static const spi_conf_t spi_config[]
SPI configuration.
static const timer_conf_t timer_config[]
All timers on board.
static const adc_conf_t adc_config[]
ADC configuration.
ADC channel configuration.
ADC device configuration.
ADC_TypeDef * dev
ADC device used.
SPI_t * dev
pointer to the used SPI device
SPI device configuration.
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