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

Configuration of CPU peripherals for STM32 Nucleo-G031K8 board. More...

Detailed Description

Configuration of CPU peripherals for STM32 Nucleo-G031K8 board.

Author
Hudson C. Dalpra dalpr.nosp@m.a.hc.nosp@m.d@gma.nosp@m.il.c.nosp@m.om

Definition in file periph_conf.h.

#include "periph_cpu.h"
#include "clk_conf.h"
+ Include dependency graph for periph_conf.h:

Go to the source code of this file.

UART configuration

#define UART_0_ISR   (isr_usart2)
 
#define UART_1_ISR   (isr_usart1)
 
#define UART_NUMOF   ARRAY_SIZE(uart_config)
 
static const uart_conf_t uart_config []
 

Macro Definition Documentation

◆ UART_0_ISR

#define UART_0_ISR   (isr_usart2)

Definition at line 52 of file periph_conf.h.

◆ UART_1_ISR

#define UART_1_ISR   (isr_usart1)

Definition at line 53 of file periph_conf.h.

◆ UART_NUMOF

#define UART_NUMOF   ARRAY_SIZE(uart_config)

Definition at line 55 of file periph_conf.h.

Variable Documentation

◆ uart_config

const uart_conf_t uart_config[]
static
Initial value:
= {
{
.dev = USART2,
.rcc_mask = RCC_APBENR1_USART2EN,
.rx_pin = GPIO_PIN(PORT_A, 3),
.tx_pin = GPIO_PIN(PORT_A, 2),
.rx_af = GPIO_AF1,
.tx_af = GPIO_AF1,
.bus = APB1,
.irqn = USART2_IRQn,
},
{
.dev = USART1,
.rcc_mask = RCC_APBENR2_USART1EN,
.rx_pin = GPIO_PIN(PORT_B, 7),
.tx_pin = GPIO_PIN(PORT_B, 6),
.rx_af = GPIO_AF0,
.tx_af = GPIO_AF0,
.bus = APB12,
.irqn = USART1_IRQn,
}
}
@ PORT_B
port B
Definition periph_cpu.h:44
@ PORT_A
port A
Definition periph_cpu.h:43
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition periph_cpu.h:42
@ GPIO_AF1
use alternate function 1
Definition cpu_gpio.h:99
@ GPIO_AF0
use alternate function 0
Definition cpu_gpio.h:98
@ APB1
Advanced Peripheral Bus 1.
Definition periph_cpu.h:75

Definition at line 29 of file periph_conf.h.