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.
| 
#define  | CONFIG_BOARD_HAS_LSE   1 | 
|   | 
| 
#define  | CONFIG_BOARD_HAS_HSE   1 | 
|   | 
| 
#define  | CONFIG_CLOCK_HSE   MHZ(25) | 
|   | 
 | 
| 
#define  | DMA_0_ISR   isr_dma2_stream7 | 
|   | 
| 
#define  | DMA_1_ISR   isr_dma2_stream6 | 
|   | 
| 
#define  | DMA_2_ISR   isr_dma1_stream6 | 
|   | 
| 
#define  | DMA_3_ISR   isr_dma2_stream2 | 
|   | 
| 
#define  | DMA_4_ISR   isr_dma2_stream5 | 
|   | 
| 
#define  | DMA_5_ISR   isr_dma2_stream3 | 
|   | 
| 
#define  | DMA_6_ISR   isr_dma2_stream4 | 
|   | 
| 
#define  | DMA_7_ISR   isr_dma2_stream0 | 
|   | 
| 
#define  | DMA_NUMOF   ARRAY_SIZE(dma_config) | 
|   | 
| static const dma_conf_t  | dma_config [] | 
|   | 
 | 
| 
#define  | UART_0_ISR   (isr_usart1) | 
|   | 
| 
#define  | UART_0_DMA_ISR   (isr_dma2_stream7) | 
|   | 
| 
#define  | UART_6_ISR   (isr_usart6) | 
|   | 
| 
#define  | UART_6_DMA_ISR   (isr_dma2_stream6) | 
|   | 
| 
#define  | UART_NUMOF   ARRAY_SIZE(uart_config) | 
|   | 
| static const uart_conf_t  | uart_config [] | 
|   | 
 | 
| 
#define  | ETH_DMA_ISR   isr_dma2_stream0 | 
|   | 
| static const eth_conf_t  | eth_config | 
|   | 
◆ 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.
 
 
◆ 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,
    },
}
@ GPIO_AF4
use alternate function 4
 
@ APB1
Advanced Peripheral Bus 1
 
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
 
 
Definition at line 155 of file periph_conf.h.
 
 
◆ sdmmc_config
Initial value:= {
    {
        .dev = SDMMC1,
        .rcc_mask = RCC_APB2ENR_SDMMC1EN,
        .cd_active = 0,             
 
 
 
 
        .irqn = SDMMC1_IRQn
    },
}
@ GPIO_AF12
use alternate function 12
 
@ APB2
Advanced Peripheral Bus 2
 
@ GPIO_IN_PU
configure as input with pull-up resistor
 
 
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.