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)
85 #define RTT_MAX_VALUE (0xFFFFFFFF)
86 #define RTT_FREQUENCY (1U)
99 .loc = USART_ROUTELOC0_RXLOC_LOC21 |
100 USART_ROUTELOC0_TXLOC_LOC23 |
101 USART_ROUTELOC0_CLKLOC_LOC19,
102 .cmu = cmuClock_USART1,
103 .irq = USART1_RX_IRQn
107 #define SPI_NUMOF ARRAY_SIZE(spi_config)
121 .cmu = cmuClock_TIMER0
125 .cmu = cmuClock_TIMER1
133 .cmu = cmuClock_LETIMER0
137 .cmu = cmuClock_LETIMER0
139 .irq = LETIMER0_IRQn,
144 #define TIMER_0_ISR isr_timer1
145 #define TIMER_1_ISR isr_letimer0
147 #define TIMER_NUMOF ARRAY_SIZE(timer_config)
154 #ifndef EFM32_USE_LEUART
155 #define EFM32_USE_LEUART 0
160 #ifndef STDIO_UART_BAUDRATE
161 #define STDIO_UART_BAUDRATE (9600)
169 .loc = USART_ROUTELOC0_RXLOC_LOC9 |
170 USART_ROUTELOC0_TXLOC_LOC9,
171 .cmu = cmuClock_LEUART0,
175 #define UART_0_ISR_RX isr_leuart0
184 .loc = USART_ROUTELOC0_RXLOC_LOC9 |
185 USART_ROUTELOC0_TXLOC_LOC9,
186 .cmu = cmuClock_USART0,
187 .irq = USART0_RX_IRQn
190 #define UART_0_ISR_RX isr_usart0_rx
193 #define UART_NUMOF ARRAY_SIZE(uart_config)