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

Board specific implementations for the STM32MP157C-DK2 board. More...

Detailed Description

Board specific implementations for the STM32MP157C-DK2 board.

Author
Gilles DOFFE gille.nosp@m.s.do.nosp@m.ffe@s.nosp@m.avoi.nosp@m.rfair.nosp@m.elin.nosp@m.ux.co.nosp@m.m

Definition in file periph_conf.h.

#include "periph_cpu.h"
#include "clk_conf.h"
#include "cfg_timer_tim2.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.

#define CONFIG_BOARD_HAS_LSE   1
 
#define CONFIG_BOARD_HAS_HSE   1
 

UART configuration

#define UART_0_ISR   (isr_usart3)
 
#define UART_0_DMA_ISR   (isr_dma1_stream4)
 
#define UART_NUMOF   ARRAY_SIZE(uart_config)
 
static const uart_conf_t uart_config []
 

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.

◆ UART_0_DMA_ISR

#define UART_0_DMA_ISR   (isr_dma1_stream4)

Definition at line 68 of file periph_conf.h.

◆ UART_0_ISR

#define UART_0_ISR   (isr_usart3)

Definition at line 67 of file periph_conf.h.

◆ UART_NUMOF

#define UART_NUMOF   ARRAY_SIZE(uart_config)

Definition at line 70 of file periph_conf.h.

Variable Documentation

◆ uart_config

const uart_conf_t uart_config[]
static
Initial value:
= {
{
.dev = USART3,
.rcc_mask = RCC_MC_APB1ENSETR_USART3EN,
.rx_pin = GPIO_PIN(PORT_B, 12),
.tx_pin = GPIO_PIN(PORT_B, 10),
.rx_af = GPIO_AF8,
.tx_af = GPIO_AF7,
.bus = APB1,
.irqn = USART3_IRQn,
.type = STM32_USART,
.clk_src = RCC_UART35CKSELR_UART35SRC_2,
},
}
@ PORT_B
port B
Definition periph_cpu.h:48
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition periph_cpu.h:46
@ GPIO_AF8
use alternate function 8
Definition cpu_gpio.h:111
@ GPIO_AF7
use alternate function 7
Definition cpu_gpio.h:109
@ STM32_USART
STM32 USART module type.
Definition cpu_uart.h:38
@ APB1
Advanced Peripheral Bus 1
Definition periph_cpu.h:79

Definition at line 44 of file periph_conf.h.