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
63 .input = adcSingleInputTemp,
64 .reference = adcRef1V25,
65 .acq_time = adcAcqTime8
69 .input = adcSingleInputVDDDiv3,
70 .reference = adcRef1V25,
71 .acq_time = adcAcqTime8
75 #define ADC_DEV_NUMOF ARRAY_SIZE(adc_config)
76 #define ADC_NUMOF ARRAY_SIZE(adc_channel_config)
90 static const dac_chan_conf_t dac_channel_config[] = {
98 #define DAC_DEV_NUMOF ARRAY_SIZE(dac_config)
99 #define DAC_NUMOF ARRAY_SIZE(dac_channel_config)
111 .loc = I2C_ROUTE_LOCATION_LOC1,
112 .cmu = cmuClock_I2C0,
120 .loc = I2C_ROUTE_LOCATION_LOC0,
121 .cmu = cmuClock_I2C1,
127 #define I2C_NUMOF ARRAY_SIZE(i2c_config)
128 #define I2C_0_ISR isr_i2c0
129 #define I2C_1_ISR isr_i2c1
140 .loc = TIMER_ROUTE_LOCATION_LOC1
147 .cmu = cmuClock_TIMER3,
150 .channel = pwm_channel_config
154 #define PWM_DEV_NUMOF ARRAY_SIZE(pwm_config)
155 #define PWM_NUMOF ARRAY_SIZE(pwm_channel_config)
162 #define RTT_MAX_VALUE (0xFFFFFF)
163 #define RTT_FREQUENCY (1U)
176 .loc = USART_ROUTE_LOCATION_LOC1,
177 .cmu = cmuClock_USART1,
178 .irq = USART1_RX_IRQn
185 .loc = USART_ROUTE_LOCATION_LOC0,
186 .cmu = cmuClock_USART2,
187 .irq = USART2_RX_IRQn
191 #define SPI_NUMOF ARRAY_SIZE(spi_config)
204 .cmu = cmuClock_TIMER0
208 .cmu = cmuClock_TIMER1
216 .cmu = cmuClock_LETIMER0
220 .cmu = cmuClock_LETIMER0
222 .irq = LETIMER0_IRQn,
227 #define TIMER_NUMOF ARRAY_SIZE(timer_config)
228 #define TIMER_0_ISR isr_timer1
229 #define TIMER_1_ISR isr_letimer0
241 .loc = UART_ROUTE_LOCATION_LOC1,
242 .cmu = cmuClock_UART0,
249 .loc = LEUART_ROUTE_LOCATION_LOC0,
250 .cmu = cmuClock_LEUART0,
255 #define UART_NUMOF ARRAY_SIZE(uart_config)
256 #define UART_0_ISR_RX isr_uart0_rx
257 #define UART_1_ISR_RX isr_leuart0