libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
Macros
usart_common_f124.h File Reference
#include <
libopencm3/stm32/common/usart_common_all.h
>
Include dependency graph for usart_common_f124.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Macros
#define
USART1
USART1_BASE
#define
USART2
USART2_BASE
#define
USART3
USART3_BASE
#define
UART4
UART4_BASE
#define
UART5
UART5_BASE
#define
USART_SR
(usart_base)
MMIO32
((usart_base) + 0x00)
#define
USART1_SR
USART_SR
(
USART1_BASE
)
#define
USART2_SR
USART_SR
(
USART2_BASE
)
#define
USART3_SR
USART_SR
(
USART3_BASE
)
#define
UART4_SR
USART_SR
(
UART4_BASE
)
#define
UART5_SR
USART_SR
(
UART5_BASE
)
#define
USART_DR
(usart_base)
MMIO32
((usart_base) + 0x04)
#define
USART1_DR
USART_DR
(
USART1_BASE
)
#define
USART2_DR
USART_DR
(
USART2_BASE
)
#define
USART3_DR
USART_DR
(
USART3_BASE
)
#define
UART4_DR
USART_DR
(
UART4_BASE
)
#define
UART5_DR
USART_DR
(
UART5_BASE
)
#define
USART_BRR
(usart_base)
MMIO32
((usart_base) + 0x08)
#define
USART1_BRR
USART_BRR
(
USART1_BASE
)
#define
USART2_BRR
USART_BRR
(
USART2_BASE
)
#define
USART3_BRR
USART_BRR
(
USART3_BASE
)
#define
UART4_BRR
USART_BRR
(
UART4_BASE
)
#define
UART5_BRR
USART_BRR
(
UART5_BASE
)
#define
USART_CR1
(usart_base)
MMIO32
((usart_base) + 0x0c)
#define
USART1_CR1
USART_CR1
(
USART1_BASE
)
#define
USART2_CR1
USART_CR1
(
USART2_BASE
)
#define
USART3_CR1
USART_CR1
(
USART3_BASE
)
#define
UART4_CR1
USART_CR1
(
UART4_BASE
)
#define
UART5_CR1
USART_CR1
(
UART5_BASE
)
#define
USART_CR2
(usart_base)
MMIO32
((usart_base) + 0x10)
#define
USART1_CR2
USART_CR2
(
USART1_BASE
)
#define
USART2_CR2
USART_CR2
(
USART2_BASE
)
#define
USART3_CR2
USART_CR2
(
USART3_BASE
)
#define
UART4_CR2
USART_CR2
(
UART4_BASE
)
#define
UART5_CR2
USART_CR2
(
UART5_BASE
)
#define
USART_CR3
(usart_base)
MMIO32
((usart_base) + 0x14)
#define
USART1_CR3
USART_CR3
(
USART1_BASE
)
#define
USART2_CR3
USART_CR3
(
USART2_BASE
)
#define
USART3_CR3
USART_CR3
(
USART3_BASE
)
#define
UART4_CR3
USART_CR3
(
UART4_BASE
)
#define
UART5_CR3
USART_CR3
(
UART5_BASE
)
#define
USART_GTPR
(usart_base)
MMIO32
((usart_base) + 0x18)
#define
USART1_GTPR
USART_GTPR
(
USART1_BASE
)
#define
USART2_GTPR
USART_GTPR
(
USART2_BASE
)
#define
USART3_GTPR
USART_GTPR
(
USART3_BASE
)
#define
UART4_GTPR
USART_GTPR
(
UART4_BASE
)
#define
UART5_GTPR
USART_GTPR
(
UART5_BASE
)
#define
USART_FLAG_PE
USART_SR_PE
#define
USART_FLAG_FE
USART_SR_FE
#define
USART_FLAG_NF
USART_SR_NF
#define
USART_FLAG_ORE
USART_SR_ORE
#define
USART_FLAG_IDLE
USART_SR_IDLE
#define
USART_FLAG_RXNE
USART_SR_RXNE
#define
USART_FLAG_TC
USART_SR_TC
#define
USART_FLAG_TXE
USART_SR_TXE
#define
USART_SR_CTS
(1 << 9)
CTS: CTS flag.
More...
#define
USART_SR_LBD
(1 << 8)
LBD: LIN break detection flag.
More...
#define
USART_SR_TXE
(1 << 7)
TXE: Transmit data buffer empty.
More...
#define
USART_SR_TC
(1 << 6)
TC: Transmission complete.
More...
#define
USART_SR_RXNE
(1 << 5)
RXNE: Read data register not empty.
More...
#define
USART_SR_IDLE
(1 << 4)
IDLE: Idle line detected.
More...
#define
USART_SR_ORE
(1 << 3)
ORE: Overrun error.
More...
#define
USART_SR_NE
(1 << 2)
NE: Noise error flag.
More...
#define
USART_SR_FE
(1 << 1)
FE: Framing error.
More...
#define
USART_SR_PE
(1 << 0)
PE: Parity error.
More...
#define
USART_DR_MASK
0x1FF
#define
USART_BRR_DIV_MANTISSA_MASK
(0xFFF << 4)
#define
USART_BRR_DIV_FRACTION_MASK
0xF
#define
USART_CR1_UE
(1 << 13)
#define
USART_CR1_M
(1 << 12)
#define
USART_CR1_WAKE
(1 << 11)
#define
USART_CR1_PCE
(1 << 10)
#define
USART_CR1_PS
(1 << 9)
#define
USART_CR1_PEIE
(1 << 8)
#define
USART_CR1_TXEIE
(1 << 7)
#define
USART_CR1_TCIE
(1 << 6)
#define
USART_CR1_RXNEIE
(1 << 5)
#define
USART_CR1_IDLEIE
(1 << 4)
#define
USART_CR1_TE
(1 << 3)
#define
USART_CR1_RE
(1 << 2)
#define
USART_CR1_RWU
(1 << 1)
#define
USART_CR1_SBK
(1 << 0)
#define
USART_CR2_LINEN
(1 << 14)
#define
USART_CR2_CLKEN
(1 << 11)
#define
USART_CR2_CPOL
(1 << 10)
#define
USART_CR2_CPHA
(1 << 9)
#define
USART_CR2_LBCL
(1 << 8)
#define
USART_CR2_LBDIE
(1 << 6)
#define
USART_CR2_LBDL
(1 << 5)
#define
USART_CR2_ADD_MASK
0xF
#define
USART_CR3_CTSIE
(1 << 10)
#define
USART_CR3_CTSE
(1 << 9)
#define
USART_CR3_RTSE
(1 << 8)
#define
USART_CR3_DMAT
(1 << 7)
#define
USART_CR3_DMAR
(1 << 6)
#define
USART_CR3_SCEN
(1 << 5)
#define
USART_CR3_NACK
(1 << 4)
#define
USART_CR3_HDSEL
(1 << 3)
#define
USART_CR3_IRLP
(1 << 2)
#define
USART_CR3_IREN
(1 << 1)
#define
USART_CR3_EIE
(1 << 0)
#define
USART_GTPR_GT_MASK
(0xFF << 8)
#define
USART_GTPR_PSC_MASK
0xFF
include
libopencm3
stm32
common
usart_common_f124.h
Generated on Tue Mar 7 2023 16:11:24 for libopencm3 by
1.9.4