22 #ifndef CONFIG_BOARD_HAS_LSE
23 #define CONFIG_BOARD_HAS_LSE 1
27 #ifndef CONFIG_BOARD_HAS_HSE
28 #define CONFIG_BOARD_HAS_HSE 1
31 #include "periph_cpu.h"
49 #define DMA_0_ISR isr_dma2_stream3
50 #define DMA_1_ISR isr_dma2_stream2
52 #define DMA_NUMOF ARRAY_SIZE(dma_config)
62 .rcc_mask = RCC_APB1ENR_USART2EN,
69 #ifdef MODULE_PERIPH_DMA
70 .dma = DMA_STREAM_UNDEF,
71 .dma_chan = UINT8_MAX,
76 .rcc_mask = RCC_APB2ENR_USART1EN,
83 #ifdef MODULE_PERIPH_DMA
84 .dma = DMA_STREAM_UNDEF,
85 .dma_chan = UINT8_MAX,
90 .rcc_mask = RCC_APB2ENR_USART6EN,
97 #ifdef MODULE_PERIPH_DMA
98 .dma = DMA_STREAM_UNDEF,
99 .dma_chan = UINT8_MAX,
105 #define UART_0_ISR (isr_usart2)
106 #define UART_1_ISR (isr_usart1)
107 #define UART_2_ISR (isr_usart6)
110 #define UART_NUMOF ARRAY_SIZE(uart_config)
128 .rccmask = RCC_APB2ENR_SPI1EN,
130 #ifdef MODULE_PERIPH_DMA
139 #define SPI_NUMOF ARRAY_SIZE(spi_config)
162 #define VBAT_ADC ADC_LINE(6)
163 #define ADC_NUMOF ARRAY_SIZE(adc_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[]
UART configuration.
static const spi_conf_t spi_config[]
SPI configuration.
static const adc_conf_t adc_config[]
ADC configuration.
Common configuration for STM32 I2C.
Common configuration for STM32 Timer peripheral based on TIM5.
@ GPIO_AF5
use alternate function 5
@ GPIO_AF8
use alternate function 8
@ GPIO_AF7
use alternate function 7
@ APB1
Advanced Peripheral Bus 1
@ APB2
Advanced Peripheral Bus 2
ADC device configuration.
int stream
DMA stream on stm32f2/4/7, channel on others STM32F2/4/7:
SPI device configuration.
SPI_t * dev
pointer to the used SPI device
UART device configuration.
USART_t * dev
pointer to the used UART device