Go to the source code of this file.
◆ USART0_BASE
#define USART0_BASE 0x4000C000 |
◆ USART1_BASE
#define USART1_BASE 0x4000D000 |
◆ USART2_BASE
#define USART2_BASE 0x4000E000 |
◆ USART_CTL
#define USART_CTL |
( |
|
x | ) |
MMIO32((x) + 0x0030) |
◆ USART_DR
#define USART_DR |
( |
|
x | ) |
MMIO32((x) + 0x0000) |
◆ USART_DR_BE
#define USART_DR_BE (0x01 << 10) |
◆ USART_DR_FE
#define USART_DR_FE (0x01 << 8) |
◆ USART_DR_OE
#define USART_DR_OE (0x01 << 11) |
◆ USART_DR_PE
#define USART_DR_PE (0x01 << 9) |
◆ USART_FBRD
#define USART_FBRD |
( |
|
x | ) |
MMIO32((x) + 0x0028) |
◆ USART_FR
#define USART_FR |
( |
|
x | ) |
MMIO32((x) + 0x0018) |
◆ USART_FR_BUSY
#define USART_FR_BUSY (0x01 << 3) |
◆ USART_FR_RXFE
#define USART_FR_RXFE (0x01 << 4) |
◆ USART_FR_RXFF
#define USART_FR_RXFF (0x01 << 6) |
◆ USART_FR_TXFE
#define USART_FR_TXFE (0x01 << 7) |
◆ USART_FR_TXFF
#define USART_FR_TXFF (0x01 << 5) |
◆ USART_IBRD
#define USART_IBRD |
( |
|
x | ) |
MMIO32((x) + 0x0024) |
◆ USART_IC
#define USART_IC |
( |
|
x | ) |
MMIO32((x) + 0x0044) |
◆ USART_IC_BE
#define USART_IC_BE (0x01 << 9) |
◆ USART_IC_FE
#define USART_IC_FE (0x01 << 7) |
◆ USART_IC_OE
#define USART_IC_OE (0x01 << 10) |
◆ USART_IC_PE
#define USART_IC_PE (0x01 << 8) |
◆ USART_IC_RT
#define USART_IC_RT (0x01 << 6) |
◆ USART_IC_RX
#define USART_IC_RX (0x01 << 4) |
◆ USART_IC_TX
#define USART_IC_TX (0x01 << 5) |
◆ USART_IFLS
#define USART_IFLS |
( |
|
x | ) |
MMIO32((x) + 0x0034) |
◆ USART_ILPR
#define USART_ILPR |
( |
|
x | ) |
MMIO32((x) + 0x0020) |
◆ USART_IM
#define USART_IM |
( |
|
x | ) |
MMIO32((x) + 0x0038) |
◆ USART_IM_BE
#define USART_IM_BE (0x01 << 9) |
◆ USART_IM_FE
#define USART_IM_FE (0x01 << 7) |
◆ USART_IM_OE
#define USART_IM_OE (0x01 << 10) |
◆ USART_IM_PE
#define USART_IM_PE (0x01 << 8) |
◆ USART_IM_RT
#define USART_IM_RT (0x01 << 6) |
◆ USART_IM_RX
#define USART_IM_RX (0x01 << 4) |
◆ USART_IM_TX
#define USART_IM_TX (0x01 << 5) |
◆ USART_IR
#define USART_IR |
( |
|
x | ) |
MMIO32((x) + 0x0004) |
◆ USART_LCRH
#define USART_LCRH |
( |
|
x | ) |
MMIO32((x) + 0x002c) |
◆ USART_MIS
#define USART_MIS |
( |
|
x | ) |
MMIO32((x) + 0x0040) |
◆ USART_RIS
#define USART_RIS |
( |
|
x | ) |
MMIO32((x) + 0x003c) |
◆ usart_flowcontrol
Enumerator |
---|
USART_FLOWCONTROL_NONE | |
USART_FLOWCONTROL_RTS_CTS | |
Definition at line 103 of file usart.h.
◆ usart_mode
Enumerator |
---|
USART_MODE_DISABLED | |
USART_MODE_RX | |
USART_MODE_TX | |
USART_MODE_TX_RX | |
Definition at line 96 of file usart.h.
◆ usart_parity
Enumerator |
---|
USART_PARITY_NONE | |
USART_PARITY_ODD | |
USART_PARITY_EVEN | |
Definition at line 90 of file usart.h.
◆ usart_stopbits
Enumerator |
---|
USART_STOPBITS_1 | |
USART_STOPBITS_1_5 | |
USART_STOPBITS_2 | |
Definition at line 84 of file usart.h.
◆ usart_clear_rx_interrupt()
void usart_clear_rx_interrupt |
( |
uint32_t |
usart | ) |
|
◆ usart_clear_tx_interrupt()
void usart_clear_tx_interrupt |
( |
uint32_t |
usart | ) |
|
◆ usart_disable_rx_interrupt()
void usart_disable_rx_interrupt |
( |
uint32_t |
usart | ) |
|
◆ usart_disable_tx_interrupt()
void usart_disable_tx_interrupt |
( |
uint32_t |
usart | ) |
|
◆ usart_enable_rx_interrupt()
void usart_enable_rx_interrupt |
( |
uint32_t |
usart | ) |
|
◆ usart_enable_tx_interrupt()
void usart_enable_tx_interrupt |
( |
uint32_t |
usart | ) |
|
◆ usart_get_interrupt_source()
bool usart_get_interrupt_source |
( |
uint32_t |
usart, |
|
|
uint32_t |
flag |
|
) |
| |
◆ usart_is_recv_ready()
bool usart_is_recv_ready |
( |
uint32_t |
usart | ) |
|
◆ usart_is_send_ready()
bool usart_is_send_ready |
( |
uint32_t |
usart | ) |
|
◆ usart_recv()
uint16_t usart_recv |
( |
uint32_t |
usart | ) |
|
◆ usart_recv_blocking()
uint16_t usart_recv_blocking |
( |
uint32_t |
usart | ) |
|
◆ usart_send()
void usart_send |
( |
uint32_t |
usart, |
|
|
uint16_t |
data |
|
) |
| |
◆ usart_send_blocking()
void usart_send_blocking |
( |
uint32_t |
usart, |
|
|
uint16_t |
data |
|
) |
| |