Loading...
Searching...
No Matches
periph_conf.h File Reference

Peripheral MCU configuration for the STM32F723E-DISCO board. More...

Detailed Description

Peripheral MCU configuration for the STM32F723E-DISCO board.

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file periph_conf.h.

#include "periph_cpu.h"
#include "clk_conf.h"
#include "cfg_rtt_default.h"
#include "cfg_usb_otg_fs.h"
#include "lcd_fmc.h"
+ Include dependency graph for periph_conf.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LCD_FMC_NUMOF   1
 Number of LCDs using FMC banks.
 

Variables

static const lcd_fmc_desc_t lcd_fmc_desc []
 Descriptors of FMC banks used for LCDs.
 
#define CONFIG_BOARD_HAS_LSE   1
 
#define CONFIG_BOARD_HAS_HSE   1
 
#define CONFIG_CLOCK_HSE   MHZ(25)
 

Timer configuration

#define TIMER_0_ISR   isr_tim2
 
#define TIMER_NUMOF   ARRAY_SIZE(timer_config)
 
static const timer_conf_t timer_config []
 

UART configuration

#define UART_0_ISR   (isr_usart6)
 
#define UART_1_ISR   (isr_usart2)
 
#define UART_2_ISR   (isr_uart4)
 
#define UART_3_ISR   (isr_uart7)
 
#define UART_4_ISR   (isr_uart5)
 
#define UART_NUMOF   ARRAY_SIZE(uart_config)
 
static const uart_conf_t uart_config []
 

I2C configuration

#define I2C_0_ISR   isr_i2c2_er
 
#define I2C_1_ISR   isr_i2c3_er
 
#define I2C_2_ISR   isr_i2c1_er
 
#define I2C_NUMOF   ARRAY_SIZE(i2c_config)
 
static const i2c_conf_t i2c_config []
 

SPI configuration

#define SPI_NUMOF   ARRAY_SIZE(spi_config)
 
static const spi_conf_t spi_config []
 

FMC configuration

#define FMC_BANK_NUMOF   ARRAY_SIZE(fmc_bank_config)
 Number of configured FMC banks.
 
static const fmc_conf_t fmc_config
 FMC controller configuration.
 
static const fmc_bank_conf_t fmc_bank_config []
 FMC Bank configuration.
 

Macro Definition Documentation

◆ CONFIG_BOARD_HAS_HSE

#define CONFIG_BOARD_HAS_HSE   1

Definition at line 29 of file periph_conf.h.

◆ CONFIG_BOARD_HAS_LSE

#define CONFIG_BOARD_HAS_LSE   1

Definition at line 24 of file periph_conf.h.

◆ CONFIG_CLOCK_HSE

#define CONFIG_CLOCK_HSE   MHZ(25)

Definition at line 34 of file periph_conf.h.

◆ FMC_BANK_NUMOF

#define FMC_BANK_NUMOF   ARRAY_SIZE(fmc_bank_config)

Number of configured FMC banks.

Definition at line 357 of file periph_conf.h.

◆ I2C_0_ISR

#define I2C_0_ISR   isr_i2c2_er

Definition at line 193 of file periph_conf.h.

◆ I2C_1_ISR

#define I2C_1_ISR   isr_i2c3_er

Definition at line 194 of file periph_conf.h.

◆ I2C_2_ISR

#define I2C_2_ISR   isr_i2c1_er

Definition at line 195 of file periph_conf.h.

◆ I2C_NUMOF

#define I2C_NUMOF   ARRAY_SIZE(i2c_config)

Definition at line 197 of file periph_conf.h.

◆ LCD_FMC_NUMOF

#define LCD_FMC_NUMOF   1

Number of LCDs using FMC banks.

Because it is used by the preprocessor it has to be a number. The ARRAY_SIZE can't be used here.

Definition at line 377 of file periph_conf.h.

◆ SPI_NUMOF

#define SPI_NUMOF   ARRAY_SIZE(spi_config)

Definition at line 233 of file periph_conf.h.

◆ TIMER_0_ISR

#define TIMER_0_ISR   isr_tim2

Definition at line 65 of file periph_conf.h.

◆ TIMER_NUMOF

#define TIMER_NUMOF   ARRAY_SIZE(timer_config)

Definition at line 67 of file periph_conf.h.

◆ UART_0_ISR

#define UART_0_ISR   (isr_usart6)

Definition at line 141 of file periph_conf.h.

◆ UART_1_ISR

#define UART_1_ISR   (isr_usart2)

Definition at line 142 of file periph_conf.h.

◆ UART_2_ISR

#define UART_2_ISR   (isr_uart4)

Definition at line 143 of file periph_conf.h.

◆ UART_3_ISR

#define UART_3_ISR   (isr_uart7)

Definition at line 144 of file periph_conf.h.

◆ UART_4_ISR

#define UART_4_ISR   (isr_uart5)

Definition at line 145 of file periph_conf.h.

◆ UART_NUMOF

#define UART_NUMOF   ARRAY_SIZE(uart_config)

Definition at line 147 of file periph_conf.h.

Variable Documentation

◆ fmc_bank_config

const fmc_bank_conf_t fmc_bank_config[]
static

FMC Bank configuration.

The board has a PSRAM IS66WV51216EBLL-55BLI with MBit on-board. It is organized in 512K x 16 bits and connected to bank 1, subbank 1 at address 0x60000000.

Note
A18 of the PSRAM is not used. Therefore, only 256K x 16 bits (512 kByte) of the 1 MByte PSRAM can be used.

The LCD display of the board is connected to bank 1, subbank2 at address 0x64000000.

Definition at line 310 of file periph_conf.h.

◆ fmc_config

const fmc_conf_t fmc_config
static

FMC controller configuration.

Definition at line 244 of file periph_conf.h.

◆ i2c_config

const i2c_conf_t i2c_config[]
static

Definition at line 154 of file periph_conf.h.

◆ lcd_fmc_desc

const lcd_fmc_desc_t lcd_fmc_desc[]
static
Initial value:
= {
{
.bank = FMC_BANK_CONFIG(1),
.cmd_offset = 0x0,
.data_offset = 0x2,
}
}
#define FMC_BANK_CONFIG(n)
Gives the configuration of n-th bank.
Definition cpu_fmc.h:75

Descriptors of FMC banks used for LCDs.

Definition at line 363 of file periph_conf.h.

◆ spi_config

const spi_conf_t spi_config[]
static
Initial value:
= {
{
.dev = SPI1,
.mosi_pin = GPIO_PIN(PORT_B, 5),
.miso_pin = GPIO_PIN(PORT_B, 4),
.sclk_pin = GPIO_PIN(PORT_A, 5),
.cs_pin = SPI_CS_UNDEF,
.mosi_af = GPIO_AF5,
.miso_af = GPIO_AF5,
.sclk_af = GPIO_AF5,
.cs_af = GPIO_AF5,
.rccmask = RCC_APB2ENR_SPI1EN,
.apbbus = APB2
},
{
.dev = SPI2,
.mosi_pin = GPIO_PIN(PORT_I, 3),
.miso_pin = GPIO_PIN(PORT_I, 2),
.sclk_pin = GPIO_PIN(PORT_I, 1),
.cs_pin = GPIO_PIN(PORT_I, 0),
.mosi_af = GPIO_AF5,
.miso_af = GPIO_AF5,
.sclk_af = GPIO_AF5,
.cs_af = GPIO_AF5,
.rccmask = RCC_APB1ENR_SPI2EN,
.apbbus = APB1
},
}
@ PORT_B
port B
Definition periph_cpu.h:48
@ PORT_A
port A
Definition periph_cpu.h:47
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition periph_cpu.h:46
@ GPIO_AF5
use alternate function 5
Definition cpu_gpio.h:107
#define SPI_CS_UNDEF
Define value for unused CS line.
Definition periph_cpu.h:363
@ APB1
Advanced Peripheral Bus 1
Definition periph_cpu.h:79
@ APB2
Advanced Peripheral Bus 2
Definition periph_cpu.h:80

Definition at line 204 of file periph_conf.h.

◆ timer_config

const timer_conf_t timer_config[]
static
Initial value:
= {
{
.dev = TIM2,
.max = 0xffffffff,
.rcc_mask = RCC_APB1ENR_TIM2EN,
.bus = APB1,
.irqn = TIM2_IRQn
}
}

Definition at line 55 of file periph_conf.h.

◆ uart_config

const uart_conf_t uart_config[]
static

Definition at line 74 of file periph_conf.h.