28 #ifndef CONFIG_BOARD_HAS_LSE
29 #define CONFIG_BOARD_HAS_LSE 1
33 #ifndef CONFIG_BOARD_HAS_HSE
34 #define CONFIG_BOARD_HAS_HSE 1
37 #include "periph_cpu.h"
49 #define RTT_FREQUENCY (16384)
72 #define ADC_NUMOF ARRAY_SIZE(adc_config)
87 #define DMA_0_ISR isr_dma1_channel2
88 #define DMA_1_ISR isr_dma1_channel3
89 #define DMA_2_ISR isr_dma1_channel4
90 #define DMA_3_ISR isr_dma1_channel5
91 #define DMA_4_ISR isr_dma1_channel7
93 #define DMA_NUMOF ARRAY_SIZE(dma_config)
104 .rcc_mask = RCC_APB1ENR_TIM2EN,
111 .rcc_mask = RCC_APB1ENR_TIM3EN,
118 .rcc_mask = RCC_APB1ENR_TIM4EN,
124 #define TIMER_0_ISR isr_tim2
125 #define TIMER_1_ISR isr_tim3
126 #define TIMER_2_ISR isr_tim4
128 #define TIMER_NUMOF ARRAY_SIZE(timer_config)
140 .rcc_mask = RCC_APB2ENR_TIM1EN,
149 .rcc_mask = RCC_APB1ENR_TIM3EN,
158 .rcc_mask = RCC_APB1ENR_TIM4EN,
166 #define QDEC_NUMOF ARRAY_SIZE(qdec_config)
176 .rcc_mask = RCC_APB2ENR_USART1EN,
181 #ifdef MODULE_PERIPH_DMA
188 .rcc_mask = RCC_APB1ENR_USART2EN,
193 #ifdef MODULE_PERIPH_DMA
200 .rcc_mask = RCC_APB1ENR_USART3EN,
205 #ifdef MODULE_PERIPH_DMA
212 #define UART_0_ISR (isr_usart1)
213 #define UART_1_ISR (isr_usart2)
214 #define UART_2_ISR (isr_usart3)
216 #define UART_NUMOF ARRAY_SIZE(uart_config)
231 .rcc_mask = RCC_APB1ENR_I2C1EN,
241 .rcc_mask = RCC_APB1ENR_I2C2EN,
247 #define I2C_0_ISR isr_i2c1_ev
248 #define I2C_1_ISR isr_i2c2_ev
250 #define I2C_NUMOF ARRAY_SIZE(i2c_config)
260 .rcc_mask = RCC_APB2ENR_TIM1EN,
265 .af = GPIO_AF_OUT_PP,
270 #define PWM_NUMOF ARRAY_SIZE(pwm_config)
284 .rccmask = RCC_APB2ENR_SPI1EN,
286 #ifdef MODULE_PERIPH_DMA
299 .rccmask = RCC_APB1ENR_SPI2EN,
301 #ifdef MODULE_PERIPH_DMA
310 #define SPI_NUMOF ARRAY_SIZE(spi_config)