20 #ifndef CONFIG_BOARD_HAS_LSE
21 #define CONFIG_BOARD_HAS_LSE 1
25 #ifndef CONFIG_BOARD_HAS_HSE
26 #define CONFIG_BOARD_HAS_HSE 1
29 #ifndef CONFIG_CLOCK_HSE
30 #define CONFIG_CLOCK_HSE MHZ(16)
33 #include "periph_cpu.h"
50 #define ADC_NUMOF ARRAY_SIZE(adc_config)
62 #define DMA_0_ISR isr_dma1_channel4
63 #define DMA_1_ISR isr_dma1_channel6
65 #define DMA_NUMOF ARRAY_SIZE(dma_config)
76 .rcc_mask = RCC_APB1ENR_TIM2EN,
83 .rcc_mask = RCC_APB1ENR_TIM3EN,
89 #define TIMER_0_ISR isr_tim2
90 #define TIMER_1_ISR isr_tim3
92 #define TIMER_NUMOF ARRAY_SIZE(timer_config)
102 .rcc_mask = RCC_APB2ENR_USART1EN,
107 #ifdef MODULE_PERIPH_DMA
114 .rcc_mask = RCC_APB1ENR_USART2EN,
119 #ifdef MODULE_PERIPH_DMA
126 #define UART_0_ISR (isr_usart1)
127 #define UART_1_ISR (isr_usart2)
129 #define UART_NUMOF ARRAY_SIZE(uart_config)
136 #ifndef RTT_FREQUENCY
137 #define RTT_FREQUENCY (RTT_MAX_FREQUENCY)
152 .rcc_mask = RCC_APB1ENR_I2C1EN,
158 #define I2C_0_ISR isr_i2c1_ev
160 #define I2C_NUMOF ARRAY_SIZE(i2c_config)
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
static const uart_conf_t uart_config[]
Static array with configuration for declared UART devices.
static const i2c_conf_t i2c_config[]
Static array with configuration for declared I2C devices.
@ APB1
Advanced Peripheral Bus 1
@ APB2
Advanced Peripheral Bus 2
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
#define CLOCK_APB1
Half AHB clock.
ADC device configuration.
int stream
DMA stream on stm32f2/4/7, channel on others STM32F2/4/7:
I2C configuration structure.
TWI_t * dev
Pointer to hardware module registers.
Timer device configuration.
TC0_t * dev
Pointer to the used as Timer device.
UART device configuration.
USART_t * dev
pointer to the used UART device