18#ifndef CONFIG_BOARD_HAS_LSE
19# define CONFIG_BOARD_HAS_LSE 1
22#ifndef CONFIG_BOARD_HAS_HSE
23# define CONFIG_BOARD_HAS_HSE 1
26#include "periph_cpu.h"
46#define DMA_0_ISR isr_dma1_stream4
47#define DMA_1_ISR isr_dma2_stream6
48#define DMA_2_ISR isr_dma1_stream6
50#define DMA_NUMOF ARRAY_SIZE(dma_config)
61 .rcc_mask = RCC_APB1LENR_USART3EN,
70#ifdef MODULE_PERIPH_DMA
77 .rcc_mask = RCC_APB2ENR_USART6EN,
86#ifdef MODULE_PERIPH_DMA
93 .rcc_mask = RCC_APB1LENR_USART2EN,
102#ifdef MODULE_PERIPH_DMA
109 .rcc_mask = RCC_APB4ENR_LPUART1EN,
115 .irqn = LPUART1_IRQn,
122#define UART_0_ISR (isr_usart3)
123#define UART_1_ISR (isr_usart6)
124#define UART_2_ISR (isr_usart2)
125#define UART_3_ISR (isr_lpuart1)
126#define UART_NUMOF ARRAY_SIZE(uart_config)
144 .rccmask = RCC_APB2ENR_SPI1EN,
157 .rccmask = RCC_APB2ENR_SPI4EN,
161#define SPI_NUMOF ARRAY_SIZE(spi_config)
182#define VBAT_ADC ADC_LINE(6)
183#define ADC_NUMOF ARRAY_SIZE(adc_config)
193 .rcc_mask = RCC_APB2ENR_TIM1EN,
203 .rcc_mask = RCC_APB1LENR_TIM4EN,
212#define PWM_NUMOF ARRAY_SIZE(pwm_config)
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
Common configuration for STM32 I2C.
Common configuration for STM32 Timer peripheral based on TIM5 and TIM2.
@ GPIO_AF1
use alternate function 1
@ GPIO_AF2
use alternate function 2
@ GPIO_AF5
use alternate function 5
@ GPIO_AF8
use alternate function 8
@ GPIO_AF7
use alternate function 7
@ STM32_LPUART
STM32 Low-power UART (LPUART) module type.
@ STM32_USART
STM32 USART module type.
@ APB1
Advanced Peripheral Bus 1.
@ APB2
Advanced Peripheral Bus 2.
ADC device configuration.
PWM device configuration.
SPI device configuration.
UART device configuration.