23#ifndef CONFIG_BOARD_HAS_HSE
24#define CONFIG_BOARD_HAS_HSE 1
28#ifndef CONFIG_CLOCK_HSE
29#define CONFIG_CLOCK_HSE MHZ(16)
32#include "periph_cpu.h"
48#define DMA_0_ISR isr_dma2_stream3
49#define DMA_1_ISR isr_dma2_stream2
51#define DMA_NUMOF ARRAY_SIZE(dma_config)
62 .rcc_mask = RCC_APB1ENR_TIM2EN,
69 .rcc_mask = RCC_APB1ENR_TIM5EN,
75#define TIMER_0_ISR isr_tim2
76#define TIMER_1_ISR isr_tim5
78#define TIMER_NUMOF ARRAY_SIZE(timer_config)
88 .rcc_mask = RCC_APB2ENR_TIM11EN,
98#define PWM_NUMOF ARRAY_SIZE(pwm_config)
114#define VBAT_ADC ADC_LINE(2)
115#define ADC_NUMOF ARRAY_SIZE(adc_config)
127#define DAC_NUMOF ARRAY_SIZE(dac_config)
137 .rcc_mask = RCC_APB1ENR_USART2EN,
144#ifdef MODULE_PERIPH_DMA
145 .dma = DMA_STREAM_UNDEF,
146 .dma_chan = UINT8_MAX,
151 .rcc_mask = RCC_APB2ENR_USART1EN,
158#ifdef MODULE_PERIPH_DMA
159 .dma = DMA_STREAM_UNDEF,
160 .dma_chan = UINT8_MAX,
165 .rcc_mask = RCC_APB1ENR_USART3EN,
172#ifdef MODULE_PERIPH_DMA
173 .dma = DMA_STREAM_UNDEF,
174 .dma_chan = UINT8_MAX,
180#define UART_0_ISR (isr_usart2)
181#define UART_1_ISR (isr_usart1)
182#define UART_2_ISR (isr_usart3)
185#define UART_NUMOF ARRAY_SIZE(uart_config)
203 .rccmask = RCC_APB2ENR_SPI1EN,
205#ifdef MODULE_PERIPH_DMA
214#define SPI_NUMOF ARRAY_SIZE(spi_config)
230 .rcc_mask = RCC_APB1ENR_I2C1EN,
236#define I2C_0_ISR isr_i2c1_ev
238#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.
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
@ GPIO_AF5
use alternate function 5
@ GPIO_AF4
use alternate function 4
@ GPIO_AF3
use alternate function 3
@ GPIO_AF7
use alternate function 7
@ APB1
Advanced Peripheral Bus 1
@ APB2
Advanced Peripheral Bus 2
ADC device configuration.
DAC line configuration data.
gpio_t pin
pin connected to the line
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.
PWM device configuration.
mini_timer_t * dev
Timer used.
SPI device configuration.
SPI_t * dev
pointer to the used SPI device
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