libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Macros | |
#define | USART_CR1(usart_base) MMIO32((usart_base) + 0x00) |
Control register 1 (USARTx_CR1) More... | |
#define | USART1_CR1 USART_CR1(USART1_BASE) |
#define | USART2_CR1 USART_CR1(USART2_BASE) |
#define | USART3_CR1 USART_CR1(USART3_BASE) |
#define | USART_CR2(usart_base) MMIO32((usart_base) + 0x04) |
Control register 2 (USARTx_CR2) More... | |
#define | USART1_CR2 USART_CR2(USART1_BASE) |
#define | USART2_CR2 USART_CR2(USART2_BASE) |
#define | USART3_CR2 USART_CR2(USART3_BASE) |
#define | USART_CR3(usart_base) MMIO32((usart_base) + 0x08) |
Control register 3 (USARTx_CR3) More... | |
#define | USART1_CR3 USART_CR3(USART1_BASE) |
#define | USART2_CR3 USART_CR3(USART2_BASE) |
#define | USART3_CR3 USART_CR3(USART3_BASE) |
#define | USART_BRR(usart_base) MMIO32((usart_base) + 0x0C) |
Baud rate register (USARTx_BRR) More... | |
#define | USART1_BRR USART_BRR(USART1_BASE) |
#define | USART2_BRR USART_BRR(USART2_BASE) |
#define | USART3_BRR USART_BRR(USART3_BASE) |
#define | USART_GTPR(usart_base) MMIO32((usart_base) + 0x10) |
Guard time and prescaler register (USARTx_GTPR) More... | |
#define | USART1_GTPR USART_GTPR(USART1_BASE) |
#define | USART2_GTPR USART_GTPR(USART2_BASE) |
#define | USART3_GTPR USART_GTPR(USART3_BASE) |
#define | USART_RTOR(usart_base) MMIO32((usart_base) + 0x14) |
Receiver timeout register (USART_RTOR) More... | |
#define | USART1_RTOR USART_RTOR(USART1_BASE) |
#define | USART2_RTOR USART_RTOR(USART2_BASE) |
#define | USART3_RTOR USART_RTOR(USART3_BASE) |
#define | USART_RQR(usart_base) MMIO32((usart_base) + 0x18) |
Request register (USART_RQR) More... | |
#define | USART1_RQR USART_RQR(USART1_BASE) |
#define | USART2_RQR USART_RQR(USART2_BASE) |
#define | USART3_RQR USART_RQR(USART3_BASE) |
#define | USART_ISR(usart_base) MMIO32((usart_base) + 0x1C) |
Interrupt & status register (USART_ISR) More... | |
#define | USART1_ISR USART_ISR(USART1_BASE) |
#define | USART2_ISR USART_ISR(USART2_BASE) |
#define | USART3_ISR USART_ISR(USART3_BASE) |
#define | USART_ICR(usart_base) MMIO32((usart_base) + 0x20) |
Interrupt flag clear register (USART_ICR) More... | |
#define | USART1_ICR USART_ICR(USART1_BASE) |
#define | USART2_ICR USART_ICR(USART2_BASE) |
#define | USART3_ICR USART_ICR(USART3_BASE) |
#define | USART_RDR(usart_base) MMIO32((usart_base) + 0x24) |
Receive data register (USART_RDR) More... | |
#define | USART1_RDR USART_RDR(USART1_BASE) |
#define | USART2_RDR USART_RDR(USART2_BASE) |
#define | USART3_RDR USART_RDR(USART3_BASE) |
#define | USART_TDR(usart_base) MMIO32((usart_base) + 0x28) |
Transmit data register (USART_TDR) More... | |
#define | USART1_TDR USART_TDR(USART1_BASE) |
#define | USART2_TDR USART_TDR(USART2_BASE) |
#define | USART3_TDR USART_TDR(USART3_BASE) |
#define USART1_BRR USART_BRR(USART1_BASE) |
Definition at line 79 of file usart_common_v2.h.
#define USART1_CR1 USART_CR1(USART1_BASE) |
Definition at line 34 of file usart_common_v2.h.
#define USART1_CR2 USART_CR2(USART1_BASE) |
Definition at line 49 of file usart_common_v2.h.
#define USART1_CR3 USART_CR3(USART1_BASE) |
Definition at line 64 of file usart_common_v2.h.
#define USART1_GTPR USART_GTPR(USART1_BASE) |
Definition at line 94 of file usart_common_v2.h.
#define USART1_ICR USART_ICR(USART1_BASE) |
Definition at line 154 of file usart_common_v2.h.
#define USART1_ISR USART_ISR(USART1_BASE) |
Definition at line 139 of file usart_common_v2.h.
#define USART1_RDR USART_RDR(USART1_BASE) |
Definition at line 169 of file usart_common_v2.h.
#define USART1_RQR USART_RQR(USART1_BASE) |
Definition at line 124 of file usart_common_v2.h.
#define USART1_RTOR USART_RTOR(USART1_BASE) |
Definition at line 109 of file usart_common_v2.h.
#define USART1_TDR USART_TDR(USART1_BASE) |
Definition at line 184 of file usart_common_v2.h.
#define USART2_BRR USART_BRR(USART2_BASE) |
Definition at line 80 of file usart_common_v2.h.
#define USART2_CR1 USART_CR1(USART2_BASE) |
Definition at line 35 of file usart_common_v2.h.
#define USART2_CR2 USART_CR2(USART2_BASE) |
Definition at line 50 of file usart_common_v2.h.
#define USART2_CR3 USART_CR3(USART2_BASE) |
Definition at line 65 of file usart_common_v2.h.
#define USART2_GTPR USART_GTPR(USART2_BASE) |
Definition at line 95 of file usart_common_v2.h.
#define USART2_ICR USART_ICR(USART2_BASE) |
Definition at line 155 of file usart_common_v2.h.
#define USART2_ISR USART_ISR(USART2_BASE) |
Definition at line 140 of file usart_common_v2.h.
#define USART2_RDR USART_RDR(USART2_BASE) |
Definition at line 170 of file usart_common_v2.h.
#define USART2_RQR USART_RQR(USART2_BASE) |
Definition at line 125 of file usart_common_v2.h.
#define USART2_RTOR USART_RTOR(USART2_BASE) |
Definition at line 110 of file usart_common_v2.h.
#define USART2_TDR USART_TDR(USART2_BASE) |
Definition at line 185 of file usart_common_v2.h.
#define USART3_BRR USART_BRR(USART3_BASE) |
Definition at line 81 of file usart_common_v2.h.
#define USART3_CR1 USART_CR1(USART3_BASE) |
Definition at line 36 of file usart_common_v2.h.
#define USART3_CR2 USART_CR2(USART3_BASE) |
Definition at line 51 of file usart_common_v2.h.
#define USART3_CR3 USART_CR3(USART3_BASE) |
Definition at line 66 of file usart_common_v2.h.
#define USART3_GTPR USART_GTPR(USART3_BASE) |
Definition at line 96 of file usart_common_v2.h.
#define USART3_ICR USART_ICR(USART3_BASE) |
Definition at line 156 of file usart_common_v2.h.
#define USART3_ISR USART_ISR(USART3_BASE) |
Definition at line 141 of file usart_common_v2.h.
#define USART3_RDR USART_RDR(USART3_BASE) |
Definition at line 171 of file usart_common_v2.h.
#define USART3_RQR USART_RQR(USART3_BASE) |
Definition at line 126 of file usart_common_v2.h.
#define USART3_RTOR USART_RTOR(USART3_BASE) |
Definition at line 111 of file usart_common_v2.h.
#define USART3_TDR USART_TDR(USART3_BASE) |
Definition at line 186 of file usart_common_v2.h.
#define USART_BRR | ( | usart_base | ) | MMIO32((usart_base) + 0x0C) |
Baud rate register (USARTx_BRR)
Definition at line 78 of file usart_common_v2.h.
#define USART_CR1 | ( | usart_base | ) | MMIO32((usart_base) + 0x00) |
Control register 1 (USARTx_CR1)
Definition at line 33 of file usart_common_v2.h.
#define USART_CR2 | ( | usart_base | ) | MMIO32((usart_base) + 0x04) |
Control register 2 (USARTx_CR2)
Definition at line 48 of file usart_common_v2.h.
#define USART_CR3 | ( | usart_base | ) | MMIO32((usart_base) + 0x08) |
Control register 3 (USARTx_CR3)
Definition at line 63 of file usart_common_v2.h.
#define USART_GTPR | ( | usart_base | ) | MMIO32((usart_base) + 0x10) |
Guard time and prescaler register (USARTx_GTPR)
Definition at line 93 of file usart_common_v2.h.
#define USART_ICR | ( | usart_base | ) | MMIO32((usart_base) + 0x20) |
Interrupt flag clear register (USART_ICR)
Definition at line 153 of file usart_common_v2.h.
#define USART_ISR | ( | usart_base | ) | MMIO32((usart_base) + 0x1C) |
Interrupt & status register (USART_ISR)
Definition at line 138 of file usart_common_v2.h.
#define USART_RDR | ( | usart_base | ) | MMIO32((usart_base) + 0x24) |
Receive data register (USART_RDR)
Definition at line 168 of file usart_common_v2.h.
#define USART_RQR | ( | usart_base | ) | MMIO32((usart_base) + 0x18) |
Request register (USART_RQR)
Definition at line 123 of file usart_common_v2.h.
#define USART_RTOR | ( | usart_base | ) | MMIO32((usart_base) + 0x14) |
Receiver timeout register (USART_RTOR)
Definition at line 108 of file usart_common_v2.h.
#define USART_TDR | ( | usart_base | ) | MMIO32((usart_base) + 0x28) |
Transmit data register (USART_TDR)
Definition at line 183 of file usart_common_v2.h.