Configuration of CPU peripherals for STM32F746G-DISCO board.  
More...
Configuration of CPU peripherals for STM32F746G-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 <stdint.h>
#include "periph_cpu.h"
#include "clk_conf.h"
#include "cfg_rtt_default.h"
#include "cfg_timer_tim2.h"
#include "cfg_usb_otg_fs.h"
#include "mii.h"
 
Go to the source code of this file.
◆ 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) | 
        
      
 
 
◆ DMA_0_ISR
      
        
          | #define DMA_0_ISR   isr_dma2_stream7 | 
        
      
 
 
◆ DMA_1_ISR
      
        
          | #define DMA_1_ISR   isr_dma2_stream6 | 
        
      
 
 
◆ DMA_2_ISR
      
        
          | #define DMA_2_ISR   isr_dma1_stream6 | 
        
      
 
 
◆ DMA_3_ISR
      
        
          | #define DMA_3_ISR   isr_dma2_stream2 | 
        
      
 
 
◆ DMA_4_ISR
      
        
          | #define DMA_4_ISR   isr_dma2_stream5 | 
        
      
 
 
◆ DMA_5_ISR
      
        
          | #define DMA_5_ISR   isr_dma2_stream3 | 
        
      
 
 
◆ DMA_6_ISR
      
        
          | #define DMA_6_ISR   isr_dma2_stream4 | 
        
      
 
 
◆ DMA_7_ISR
      
        
          | #define DMA_7_ISR   isr_dma2_stream0 | 
        
      
 
 
◆ DMA_NUMOF
◆ DWC2_USB_OTG_HS_ENABLED
      
        
          | #define DWC2_USB_OTG_HS_ENABLED | 
        
      
 
Enable the high speed USB OTG peripheral. 
Definition at line 284 of file periph_conf.h.
 
 
◆ ETH_DMA_ISR
      
        
          | #define ETH_DMA_ISR   isr_dma2_stream0 | 
        
      
 
 
◆ FMC_BANK_NUMOF
◆ I2C_0_ISR
      
        
          | #define I2C_0_ISR   isr_i2c1_er | 
        
      
 
 
◆ I2C_1_ISR
      
        
          | #define I2C_1_ISR   isr_i2c3_er | 
        
      
 
 
◆ I2C_NUMOF
◆ SDMMC_CONFIG_NUMOF
      
        
          | #define SDMMC_CONFIG_NUMOF   1 | 
        
      
 
Number of configured SDIO/SDMMC peripherals. 
Definition at line 463 of file periph_conf.h.
 
 
◆ SPI_NUMOF
◆ UART_0_DMA_ISR
      
        
          | #define UART_0_DMA_ISR   (isr_dma2_stream7) | 
        
      
 
 
◆ UART_0_ISR
      
        
          | #define UART_0_ISR   (isr_usart1) | 
        
      
 
 
◆ UART_6_DMA_ISR
      
        
          | #define UART_6_DMA_ISR   (isr_dma2_stream6) | 
        
      
 
 
◆ UART_6_ISR
      
        
          | #define UART_6_ISR   (isr_usart6) | 
        
      
 
 
◆ UART_NUMOF
◆ USBDEV_NUMOF
Number of available USB OTG peripherals. 
Definition at line 316 of file periph_conf.h.
 
 
◆ dma_config
Initial value:= {
    { .stream = 15 },   
    { .stream = 14 },   
    { .stream = 6 },    
    { .stream = 3 },    
    { .stream = 4 },    
    { .stream = 11 },   
    { .stream = 12 },   
    { .stream = 8 },    
}
 
Definition at line 54 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,
    }
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
 
@ GPIO_AF10
use alternate function 10
 
@ DWC2_USB_OTG_PHY_ULPI
ULPI for external HS PHY.
 
@ DWC2_USB_OTG_HS
High speed peripheral.
 
 
Common USB OTG HS configuration with ULPI HS PHY. 
Definition at line 289 of file periph_conf.h.
 
 
◆ eth_config
Initial value:= {
    .dma = 7,
    .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 192 of file periph_conf.h.
 
 
◆ fmc_bank_config
FMC Bank configuration. 
The board has a SDRAM IS42S32400F-6BL with 128 MBit on-board. It is organized in 4 banks of 1M x 32 bits each and connected to bank 5 at address 0xc0000000.
- Note
 - Since only D0 to D15 are connected and D16 to D31 are unused, 4 banks with only 1M x 16 bits and thus half the capacity (8 MByte) can be used. 
 
Definition at line 390 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            = I2C3,
        .rcc_mask       = RCC_APB1ENR_I2C3EN,
        .rcc_sw_mask    = RCC_DCKCFGR2_I2C3SEL_1,
        .irqn           = I2C3_ER_IRQn,
    },
}
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
 
@ GPIO_AF4
use alternate function 4
 
@ APB1
Advanced Peripheral Bus 1.
 
 
Definition at line 155 of file periph_conf.h.
 
 
◆ ltdc_config
◆ sdmmc_config
Initial value:= {
    {
        .dev = SDMMC1,
        .rcc_mask = RCC_APB2ENR_SDMMC1EN,
        .cd_active = 0,             
        .cd_mode = GPIO_IN_PU,      
 
 
 
 
        .irqn = SDMMC1_IRQn
    },
}
@ GPIO_AF12
use alternate function 12
 
@ APB2
Advanced Peripheral Bus 2.
 
 
SDIO/SDMMC static configuration struct. 
Definition at line 438 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 126 of file periph_conf.h.
 
 
◆ uart_config
Initial value:= {
    {
        .dev        = USART1,
        .rcc_mask   = RCC_APB2ENR_USART1EN,
        .irqn       = USART1_IRQn,
 
 
 
 
    },
    {  
        .dev        = USART6,
        .rcc_mask   = RCC_APB2ENR_USART6EN,
        .irqn       = USART6_IRQn,
 
 
 
 
    },
}
@ GPIO_AF7
use alternate function 7
 
 
Definition at line 83 of file periph_conf.h.