19 #ifndef CONFIG_BOARD_HAS_LSE 
   20 #define CONFIG_BOARD_HAS_LSE    1 
   24 #ifndef CONFIG_BOARD_HAS_HSE 
   25 #define CONFIG_BOARD_HAS_HSE    1 
   29 #ifndef CONFIG_CLOCK_HSE 
   30 #define CONFIG_CLOCK_HSE               MHZ(25) 
   33 #include "periph_cpu.h" 
   35 #include "cfg_rtt_default.h" 
   36 #if defined(MODULE_PERIPH_USBDEV_HS_UTMI) 
   55         .rcc_mask = RCC_APB1ENR_TIM2EN,
 
   61 #define TIMER_0_ISR         isr_tim2 
   63 #define TIMER_NUMOF         ARRAY_SIZE(timer_config) 
   73         .rcc_mask   = RCC_APB2ENR_USART6EN,
 
   80 #ifdef MODULE_PERIPH_UART_HW_FC 
   89         .rcc_mask   = RCC_APB1ENR_USART2EN,
 
   96 #ifdef MODULE_PERIPH_UART_HW_FC 
  105         .rcc_mask   = RCC_APB1ENR_UART7EN,
 
  112 #ifdef MODULE_PERIPH_UART_HW_FC 
  121         .rcc_mask   = RCC_APB1ENR_UART5EN,
 
  128 #ifdef MODULE_PERIPH_UART_HW_FC 
  137 #define UART_0_ISR          (isr_usart6) 
  138 #define UART_1_ISR          (isr_usart2) 
  139 #define UART_2_ISR          (isr_uart4) 
  140 #define UART_3_ISR          (isr_uart7) 
  141 #define UART_4_ISR          (isr_uart5) 
  143 #define UART_NUMOF          ARRAY_SIZE(uart_config) 
  159         .rcc_mask       = RCC_APB1ENR_I2C2EN,
 
  160         .rcc_sw_mask    = RCC_DCKCFGR2_I2C2SEL_1,
 
  161         .irqn           = I2C2_ER_IRQn,
 
  171         .rcc_mask       = RCC_APB1ENR_I2C3EN,
 
  172         .rcc_sw_mask    = RCC_DCKCFGR2_I2C3SEL_1,
 
  173         .irqn           = I2C3_ER_IRQn,
 
  183         .rcc_mask       = RCC_APB1ENR_I2C1EN,
 
  184         .rcc_sw_mask    = RCC_DCKCFGR2_I2C1SEL_1,
 
  185         .irqn           = I2C1_ER_IRQn,
 
  189 #define I2C_0_ISR           isr_i2c2_er 
  190 #define I2C_1_ISR           isr_i2c3_er 
  191 #define I2C_2_ISR           isr_i2c1_er 
  193 #define I2C_NUMOF           ARRAY_SIZE(i2c_config) 
  211         .rccmask  = RCC_APB2ENR_SPI1EN,
 
  224         .rccmask  = RCC_APB1ENR_SPI2EN,
 
  229 #define SPI_NUMOF           ARRAY_SIZE(spi_config) 
  242     .rcc_mask = RCC_AHB3ENR_FMCEN,
 
  243 #if MODULE_PERIPH_FMC_NOR_SRAM 
  278 #if MODULE_PERIPH_FMC_16BIT 
  313         .address = 0x60000000,  
 
  320             .r_timing = {  .addr_setup = 13,        
 
  322                            .bus_turnaround = 3, },  
 
  331         .address = 0x64000000,  
 
  343             .r_timing = {  .addr_setup = 2,         
 
  345                            .bus_turnaround = 5, },  
 
  353 #define FMC_BANK_NUMOF  ARRAY_SIZE(fmc_bank_config) 
  373 #define LCD_FMC_NUMOF  1 
#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 i2c_conf_t i2c_config[]
I2C configuration.
 
static const timer_conf_t timer_config[]
All timers on board.
 
static const lcd_fmc_desc_t lcd_fmc_desc[]
Descriptors of FMC banks used for LCDs.
 
static const fmc_bank_conf_t fmc_bank_config[]
FMC Bank configuration.
 
static const fmc_conf_t fmc_config
FMC controller configuration.
 
Common configuration for STM32 OTG FS peripheral.
 
Common configuration for STM32 OTG HS peripheral with internal UTMI HS PHY.
 
@ GPIO_AF5
use alternate function 5
 
@ GPIO_AF4
use alternate function 4
 
@ GPIO_AF8
use alternate function 8
 
@ GPIO_AF12
use alternate function 12
 
@ GPIO_AF7
use alternate function 7
 
#define SPI_CS_UNDEF
Define value for unused CS line.
 
@ APB1
Advanced Peripheral Bus 1
 
@ APB2
Advanced Peripheral Bus 2
 
#define FMC_BANK_CONFIG(n)
Gives the configuration of n-th bank.
 
@ FMC_BUS_WIDTH_16BIT
16 bit data bus width
 
@ FMC_BANK_1
Bank 1 is always available and used for NOR, PSRAM, SRAM.
 
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
 
Bank configuration structure.
 
FMC peripheral configuration.
 
I2C configuration structure.
 
TWI_t * dev
Pointer to hardware module registers.
 
Descriptor of the FMC bank used for a LCD.
 
const fmc_bank_conf_t * bank
FMC bank config used for the LCD.
 
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
 
#define KiB(x)
A macro to return the bytes in x KiB.