24 #include "periph_cpu.h"
36 #define CLOCK_HF cmuSelect_HFXO
38 #ifndef CLOCK_CORE_DIV
39 #define CLOCK_CORE_DIV cmuClkDiv_1
42 #define CLOCK_LFA cmuSelect_LFXO
45 #define CLOCK_LFB cmuSelect_LFXO
48 #define CLOCK_LFE cmuSelect_LFXO
56 #ifdef EMU_DCDCINIT_OFF
57 #error "This option will soft-brick your board. Please remove it."
75 .input = adcPosSelTEMP,
76 .reference = adcRef1V25,
77 .acq_time = adcAcqTime8
81 .input = adcPosSelAVDD,
82 .reference = adcRef5V,
83 .acq_time = adcAcqTime8
87 #define ADC_DEV_NUMOF ARRAY_SIZE(adc_config)
88 #define ADC_NUMOF ARRAY_SIZE(adc_channel_config)
100 .loc = I2C_ROUTELOC0_SDALOC_LOC15 |
101 I2C_ROUTELOC0_SCLLOC_LOC15,
102 .cmu = cmuClock_I2C0,
108 #define I2C_NUMOF ARRAY_SIZE(i2c_config)
109 #define I2C_0_ISR isr_i2c0
116 #define RTT_MAX_VALUE (0xFFFFFFFF)
117 #define RTT_FREQUENCY (1U)
130 .loc = USART_ROUTELOC0_RXLOC_LOC11 |
131 USART_ROUTELOC0_TXLOC_LOC11 |
132 USART_ROUTELOC0_CLKLOC_LOC11,
133 .cmu = cmuClock_USART1,
134 .irq = USART1_RX_IRQn
138 #define SPI_NUMOF ARRAY_SIZE(spi_config)
151 .cmu = cmuClock_TIMER0
155 .cmu = cmuClock_TIMER1
163 .cmu = cmuClock_LETIMER0
167 .cmu = cmuClock_LETIMER0
169 .irq = LETIMER0_IRQn,
174 #define TIMER_NUMOF ARRAY_SIZE(timer_config)
175 #define TIMER_0_ISR isr_timer1
176 #define TIMER_1_ISR isr_letimer0
188 .loc = USART_ROUTELOC0_RXLOC_LOC0 |
189 USART_ROUTELOC0_TXLOC_LOC0,
190 .cmu = cmuClock_USART0,
191 .irq = USART0_RX_IRQn
197 .loc = LEUART_ROUTELOC0_RXLOC_LOC18 |
198 LEUART_ROUTELOC0_TXLOC_LOC18,
199 .cmu = cmuClock_LEUART0,
204 #define UART_NUMOF ARRAY_SIZE(uart_config)
205 #define UART_0_ISR_RX isr_usart0_rx
206 #define UART_1_ISR_RX isr_leuart0