periph_conf.h File Reference

Peripheral MCU configuration for the nucleo-f767zi board. More...

Detailed Description

Peripheral MCU configuration for the nucleo-f767zi 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 "f7/cfg_clock_216_8_1.h"
#include "cfg_i2c1_pb8_pb9.h"
#include "cfg_spi_divtable.h"
#include "cfg_rtt_default.h"
#include "cfg_timer_tim2.h"
+ Include dependency graph for periph_conf.h:

Go to the source code of this file.

UART configuration

#define UART_0_ISR   (isr_usart3)
 
#define UART_1_ISR   (isr_usart6)
 
#define UART_2_ISR   (isr_usart2)
 
#define UART_NUMOF   ARRAY_SIZE(uart_config)
 
static const uart_conf_t uart_config []
 

SPI configuration

Note
The spi_divtable is auto-generated from cpu/stm32_common/dist/spi_divtable/spi_divtable.c
#define SPI_NUMOF   ARRAY_SIZE(spi_config)
 
static const spi_conf_t spi_config []
 

ETH configuration

#define ETH_RX_BUFFER_COUNT   (4)
 
#define ETH_TX_BUFFER_COUNT   (4)
 
#define ETH_RX_BUFFER_SIZE   (1524)
 
#define ETH_TX_BUFFER_SIZE   (1524)
 
#define ETH_DMA_ISR   isr_dma2_stream0
 
static const eth_conf_t eth_config
 

Variable Documentation

◆ eth_config

const eth_conf_t eth_config
static
Initial value:
= {
.mode = RMII,
.mac = { 0 },
.speed = ETH_SPEED_100TX_FD,
.dma = 3,
.dma_chan = 8,
.phy_addr = 0x01,
.pins = {
}
}
port C
Definition: periph_cpu.h:38
port A
Definition: periph_cpu.h:36
port G
Definition: periph_cpu.h:42
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition: periph_cpu.h:35
Configuration for RMII.
port B
Definition: periph_cpu.h:37

Definition at line 147 of file periph_conf.h.

◆ spi_config

const spi_conf_t spi_config[]
static
Initial value:
= {
{
.dev = SPI1,
.mosi_pin = GPIO_PIN(PORT_A, 7),
.miso_pin = GPIO_PIN(PORT_A, 6),
.sclk_pin = GPIO_PIN(PORT_A, 5),
.cs_pin = GPIO_UNDEF,
.af = GPIO_AF5,
.rccmask = RCC_APB2ENR_SPI1EN,
.apbbus = APB2
},
{
.dev = SPI4,
.mosi_pin = GPIO_PIN(PORT_E, 6),
.miso_pin = GPIO_PIN(PORT_E, 5),
.sclk_pin = GPIO_PIN(PORT_E, 2),
.cs_pin = GPIO_UNDEF,
.af = GPIO_AF5,
.rccmask = RCC_APB2ENR_SPI4EN,
.apbbus = APB2
}
}
port E
Definition: periph_cpu.h:40
port A
Definition: periph_cpu.h:36
APB2 bus.
use alternate function 5
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition: periph_cpu.h:35

Definition at line 117 of file periph_conf.h.