cfg_uart_default.h File Reference

Default UART configuration for GD32VF103 boards. More...

Detailed Description

Default UART configuration for GD32VF103 boards.

Author
Koen Zandberg koen@.nosp@m.berg.nosp@m.zand..nosp@m.net
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net

Definition in file cfg_uart_default.h.

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

Go to the source code of this file.

UART configuration

#define UART_0_IRQN   USART0_IRQn
 
#define UART_NUMOF   ARRAY_SIZE(uart_config)
 
static const uart_conf_t uart_config []
 

Variable Documentation

◆ uart_config

const uart_conf_t uart_config[]
static
Initial value:
= {
{
.dev = USART0,
.rcu_mask = RCU_APB2EN_USART0EN_Msk,
.rx_pin = GPIO_PIN(PORT_A, 10),
.tx_pin = GPIO_PIN(PORT_A, 9),
.bus = APB2,
.irqn = USART0_IRQn,
},
}
@ PORT_A
port A
Definition: periph_cpu.h:47
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition: periph_cpu.h:46
@ APB2
Advanced Peripheral Bus 2
Definition: periph_cpu.h:80

Definition at line 34 of file cfg_uart_default.h.