20 #ifndef PERIPH_CONF_COMMON_H
21 #define PERIPH_CONF_COMMON_H
24 #ifndef CONFIG_BOARD_HAS_LSE
25 #define CONFIG_BOARD_HAS_LSE 1
29 #ifndef CONFIG_BOARD_HAS_HSE
30 #define CONFIG_BOARD_HAS_HSE 1
32 #define CLOCK_HSE MHZ(16)
34 #include "periph_cpu.h"
51 #define ADC_NUMOF ARRAY_SIZE(adc_config)
63 #define DMA_0_ISR isr_dma1_channel4
64 #define DMA_1_ISR isr_dma1_channel6
66 #define DMA_NUMOF ARRAY_SIZE(dma_config)
77 .rcc_mask = RCC_APB1ENR_TIM2EN,
84 .rcc_mask = RCC_APB1ENR_TIM3EN,
90 #define TIMER_0_ISR isr_tim2
91 #define TIMER_1_ISR isr_tim3
93 #define TIMER_NUMOF ARRAY_SIZE(timer_config)
103 .rcc_mask = RCC_APB2ENR_USART1EN,
108 #ifdef MODULE_PERIPH_DMA
115 .rcc_mask = RCC_APB1ENR_USART2EN,
120 #ifdef MODULE_PERIPH_DMA
127 #define UART_0_ISR (isr_usart1)
128 #define UART_1_ISR (isr_usart2)
130 #define UART_NUMOF ARRAY_SIZE(uart_config)
137 #ifndef RTT_FREQUENCY
138 #define RTT_FREQUENCY (1)
153 .rcc_mask = RCC_APB1ENR_I2C1EN,
159 #define I2C_0_ISR isr_i2c1_ev
161 #define I2C_NUMOF ARRAY_SIZE(i2c_config)