21#ifndef CONFIG_BOARD_HAS_LSE
22#define CONFIG_BOARD_HAS_LSE 1
26#ifndef CONFIG_BOARD_HAS_HSE
27#define CONFIG_BOARD_HAS_HSE 1
31#ifndef CONFIG_CLOCK_HSE
32#define CONFIG_CLOCK_HSE MHZ(8)
35#include "periph_cpu.h"
37#include "cfg_rtt_default.h"
54#define DMA_0_ISR isr_dma2_stream6
55#define DMA_1_ISR isr_dma2_stream5
56#define DMA_NUMOF ARRAY_SIZE(dma_config)
68 .rcc_mask = RCC_APB1ENR_USART3EN,
75#ifdef MODULE_PERIPH_DMA
76 .dma = DMA_STREAM_UNDEF,
82 .rcc_mask = RCC_APB2ENR_USART6EN,
89#ifdef MODULE_PERIPH_DMA
90 .dma = DMA_STREAM_UNDEF,
95#define UART_0_ISR (isr_usart3)
96#define UART_1_ISR (isr_usart6)
97#define UART_NUMOF ARRAY_SIZE(uart_config)
121 .rcc_mask = RCC_APB1ENR_I2C1EN,
123 .irqn = I2C1_EV_IRQn,
133 .rcc_mask = RCC_APB1ENR_I2C2EN,
135 .irqn = I2C2_EV_IRQn,
138#define I2C_0_ISR isr_i2c1_ev
139#define I2C_1_ISR isr_i2c2_ev
140#define I2C_NUMOF ARRAY_SIZE(i2c_config)
158 .rccmask = RCC_APB1ENR_I2C2EN,
160#ifdef MODULE_PERIPH_DMA
168#define SPI_NUMOF ARRAY_SIZE(spi_config)
178 .rcc_mask = RCC_APB1ENR_TIM3EN,
190 .rcc_mask = RCC_APB1ENR_TIM5EN,
202 .rcc_mask = RCC_APB1ENR_TIM12EN,
214 .rcc_mask = RCC_APB1ENR_TIM14EN,
225#define PWM_NUMOF ARRAY_SIZE(pwm_config)
245#define VBAT_ADC ADC_LINE(6)
246#define ADC_NUMOF ARRAY_SIZE(adc_config)
263#define DAC_NUMOF ARRAY_SIZE(dac_config)
275 .rcc_mask = RCC_AHB3ENR_FMCEN,
276#if MODULE_PERIPH_FMC_SDRAM
309#if MODULE_PERIPH_FMC_32BIT
355 .address = 0xc0000000,
364 .burst_write =
false,
365 .burst_len = FMC_BURST_LENGTH_1,
366 .burst_interleaved =
false,
367 .write_protect =
false,
370 .row_to_col_delay = 2,
375 .exit_self_refresh = 7,
376 .load_mode_register = 2,
377 .refresh_period = 16,
386#define FMC_BANK_NUMOF ARRAY_SIZE(fmc_bank_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
static const fmc_bank_conf_t fmc_bank_config[]
FMC Bank configuration.
static const fmc_conf_t fmc_config
FMC controller configuration.
static const dac_conf_t dac_config[]
DAC configuration.
Common configuration for STM32 Timer peripheral based on TIM2.
Common configuration for STM32 OTG FS peripheral.
@ GPIO_AF2
use alternate function 2
@ GPIO_AF5
use alternate function 5
@ GPIO_AF4
use alternate function 4
@ GPIO_AF8
use alternate function 8
@ GPIO_AF9
use alternate function 9
@ GPIO_AF12
use alternate function 12
@ GPIO_AF7
use alternate function 7
@ APB1
Advanced Peripheral Bus 1
@ APB2
Advanced Peripheral Bus 2
@ FMC_SDRAM
SDRAM Controller used.
@ FMC_BUS_WIDTH_32BIT
32 bit data bus width
ADC device configuration.
DAC line configuration data.
Bank configuration structure.
FMC peripheral configuration.
I2C configuration structure.
PWM device configuration.
SPI device configuration.
UART device configuration.
#define MiB(x)
A macro to return the bytes in x MiB.