21#ifndef PERIPH_CPU_UART_H
22#define PERIPH_CPU_UART_H
45#ifndef UART_TXBUF_SIZE
46#define UART_TXBUF_SIZE (64)
56#define UART_INVALID_MODE (0x8000000)
62#define HAVE_UART_PARITY_T
76#define HAVE_UART_DATA_BITS_T
80#if defined(USART_CR1_M1)
93#define HAVE_UART_STOP_BITS_T
109#ifndef CPU_FAM_STM32F1
115#ifdef MODULE_PERIPH_UART_HW_FC
118#ifndef CPU_FAM_STM32F1
123#if defined(CPU_FAM_STM32L0) || defined(CPU_FAM_STM32L4) || \
124 defined(CPU_FAM_STM32WB) || defined(CPU_FAM_STM32G4) || \
125 defined(CPU_FAM_STM32L5) || defined(CPU_FAM_STM32U5) || \
126 defined(CPU_FAM_STM32MP1) || defined(CPU_FAM_STM32WL)
130#ifdef MODULE_PERIPH_DMA
DMA CPU specific definitions for the STM32 family.
GPIO CPU definitions for the STM32 family.
uart_type_t
UART hardware module types.
@ STM32_LPUART
STM32 Low-power UART (LPUART) module type.
@ STM32_USART
STM32 USART module type.
gpio_af_t
Override alternative GPIO mode options.
uart_parity_t
Definition of possible parity modes.
@ UART_PARITY_SPACE
space parity
@ UART_PARITY_NONE
no parity
@ UART_PARITY_EVEN
even parity
@ UART_PARITY_ODD
odd parity
@ UART_PARITY_MARK
mark parity
uart_stop_bits_t
Definition of possible stop bits lengths.
@ UART_STOP_BITS_2
2 stop bits
@ UART_STOP_BITS_1
1 stop bit
#define UART_INVALID_MODE
Invalid UART mode mask.
uart_data_bits_t
Definition of possible data bits lengths in a UART frame.
@ UART_DATA_BITS_6
6 data bits
@ UART_DATA_BITS_5
5 data bits
@ UART_DATA_BITS_7
7 data bits
@ UART_DATA_BITS_8
8 data bits
unsigned dma_t
DMA channel type.
UART device configuration.
gpio_af_t rx_af
alternate function for RX pin
uint32_t rcc_mask
bit in clock enable register
USART_TypeDef * dev
UART device base register address.
gpio_af_t tx_af
alternate function for TX pin