Peripheral MCU configuration for the STM32F769I-DISCO board.
More...
Peripheral MCU configuration for the STM32F769I-DISCO board.
- Author
- Vincent Dupont vince.nosp@m.nt@o.nosp@m.takey.nosp@m.s.co.nosp@m.m
-
Luis A. Ruiz luisa.nosp@m.n00@.nosp@m.hotma.nosp@m.il.c.nosp@m.om
Definition in file periph_conf.h.
#include "periph_cpu.h"
#include "clk_conf.h"
#include "cfg_rtt_default.h"
#include "cfg_timer_tim2.h"
#include "mii.h"
#include "usbdev_synopsys_dwc2.h"
Go to the source code of this file.
|
| Device | Bus | SCL | SDA | Usage |
| I2C_DEV(0) | I2C1 | PB8 (Arduino D15) | PB9 (Arduino D14) | Arduino connector |
| I2C_DEV(1) | I2C4 | PD12 | PB7 | Touch panel, audio codec |
I2C4 connects the FT6x06 touch panel controller (INT on PI13) and the WM8994 audio codec (address 0x1a).
|
| #define | I2C_0_ISR isr_i2c1_er |
| |
| #define | I2C_1_ISR isr_i2c4_er |
| |
| #define | I2C_NUMOF ARRAY_SIZE(i2c_config) |
| |
| static const i2c_conf_t | i2c_config [] |
| |
|
| Device | Bus | SCK | MISO | MOSI |
| SPI_DEV(0) | SPI2 | PA12 (Arduino D13) | PB14 (Arduino D12) | PB15 (Arduino D11) |
The Arduino D10 pin (PA11) is the usual chip select GPIO. Note that SCK is shared with the LED LD3, which therefore flickers during SPI transfers.
|
| #define | SPI_NUMOF ARRAY_SIZE(spi_config) |
| |
| static const spi_conf_t | spi_config [] |
| |
|
The on-board microSD card slot (CN5) is connected to SDMMC2, with the card detect signal on PI15 (active low)
|
| #define | SDMMC_CONFIG_NUMOF 1 |
| | Number of configured SDIO/SDMMC peripherals.
|
| |
| static const sdmmc_conf_t | sdmmc_config [] |
| | SDIO/SDMMC static configuration struct.
|
| |
◆ ADC_CLK_MAX
| #define ADC_CLK_MAX MHZ(36) |
◆ ADC_NUMOF
◆ CONFIG_BOARD_HAS_HSE
| #define CONFIG_BOARD_HAS_HSE 1 |
◆ CONFIG_BOARD_HAS_LSE
| #define CONFIG_BOARD_HAS_LSE 1 |
◆ CONFIG_CLOCK_HSE
| #define CONFIG_CLOCK_HSE MHZ(25) |
◆ DAC_NUMOF
◆ DMA_0_ISR
| #define DMA_0_ISR isr_dma2_stream7 |
◆ DMA_1_ISR
| #define DMA_1_ISR isr_dma1_stream7 |
◆ DMA_2_ISR
| #define DMA_2_ISR isr_dma2_stream6 |
◆ DMA_3_ISR
| #define DMA_3_ISR isr_dma2_stream0 |
◆ DMA_4_ISR
| #define DMA_4_ISR isr_dma1_stream3 |
◆ DMA_5_ISR
| #define DMA_5_ISR isr_dma1_stream4 |
◆ DMA_6_ISR
| #define DMA_6_ISR isr_dma2_stream5 |
◆ DMA_NUMOF
◆ DWC2_USB_OTG_HS_ENABLED
| #define DWC2_USB_OTG_HS_ENABLED |
Enable the high speed USB OTG peripheral.
Definition at line 537 of file periph_conf.h.
◆ FMC_BANK_NUMOF
◆ I2C_0_ISR
| #define I2C_0_ISR isr_i2c1_er |
◆ I2C_1_ISR
| #define I2C_1_ISR isr_i2c4_er |
◆ I2C_NUMOF
◆ PWM_NUMOF
◆ SDMMC_CONFIG_NUMOF
| #define SDMMC_CONFIG_NUMOF 1 |
Number of configured SDIO/SDMMC peripherals.
Definition at line 522 of file periph_conf.h.
◆ SPI_NUMOF
◆ UART_0_ISR
| #define UART_0_ISR (isr_usart1) |
◆ UART_1_ISR
◆ UART_2_ISR
| #define UART_2_ISR (isr_usart6) |
◆ UART_NUMOF
◆ USBDEV_NUMOF
Number of available USB OTG peripherals.
Definition at line 569 of file periph_conf.h.
◆ VBAT_ADC
◆ adc_config
Initial value:= {
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
Definition at line 229 of file periph_conf.h.
◆ dac_config
◆ dma_config
Initial value:= {
{ .stream = 15 },
{ .stream = 7 },
{ .stream = 14 },
{ .stream = 8 },
{ .stream = 3 },
{ .stream = 4 },
{ .stream = 13 },
}
Definition at line 52 of file periph_conf.h.
◆ dwc2_usb_otg_fshs_config
Initial value:= {
{
.periph = USB_OTG_HS_PERIPH_BASE,
.rcc_mask = RCC_AHB1ENR_OTGHSEN,
.irqn = OTG_HS_IRQn,
.ahb = AHB1,
}
}
@ GPIO_AF10
use alternate function 10
@ DWC2_USB_OTG_PHY_ULPI
ULPI for external HS PHY.
@ DWC2_USB_OTG_HS
High speed peripheral.
USB OTG HS configuration with ULPI PHY.
Definition at line 542 of file periph_conf.h.
◆ eth_config
Initial value:= {
.dma = 3,
.dma_chan = 8,
.phy_addr = 0x00,
.pins = {
}
}
@ RMII
Configuration for RMII.
#define MII_BMCR_FULL_DPLX
Set for full duplex.
#define MII_BMCR_SPEED_100
Set speed to 100 Mbps.
Definition at line 263 of file periph_conf.h.
◆ fmc_bank_config
FMC Bank configuration.
The board has a 128-Mbit SDRAM: MT48LC4M32B2B5-6A, or IS42S32400F-6BL from MB1225 revision B03 on. It is organized in 4 banks of 1M x 32 bits each and connected to bank 5 at address 0xc0000000. The CAS latency and timings are the ones used by ST's board support package (BSP) for this board.
Definition at line 368 of file periph_conf.h.
◆ fmc_config
◆ i2c_config
Initial value:= {
{
.dev = I2C1,
.rcc_mask = RCC_APB1ENR_I2C1EN,
.rcc_sw_mask = RCC_DCKCFGR2_I2C1SEL_1,
.irqn = I2C1_ER_IRQn,
},
{
.dev = I2C4,
.rcc_mask = RCC_APB1ENR_I2C4EN,
.rcc_sw_mask = RCC_DCKCFGR2_I2C4SEL_1,
.irqn = I2C4_ER_IRQn,
},
}
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
@ GPIO_AF4
use alternate function 4
@ GPIO_AF11
use alternate function 11
@ APB1
Advanced Peripheral Bus 1.
Definition at line 85 of file periph_conf.h.
◆ pwm_config
◆ sdmmc_config
Initial value:= {
{
.dev = SDMMC2,
.rcc_mask = RCC_APB2ENR_SDMMC2EN,
.cd_active = 0,
.cd_mode = GPIO_IN_PU,
.irqn = SDMMC2_IRQn,
},
}
@ APB2
Advanced Peripheral Bus 2.
SDIO/SDMMC static configuration struct.
Definition at line 497 of file periph_conf.h.
◆ spi_config
Initial value:= {
{
.dev = SPI2,
.rccmask = RCC_APB1ENR_SPI2EN,
},
}
@ GPIO_AF5
use alternate function 5
#define SPI_CS_UNDEF
Define value for unused CS line.
Definition at line 188 of file periph_conf.h.
◆ uart_config