110 return ((
USART_SR(usart) & flag) != 0);
#define USART_SR(usart_base)
#define USART_DR(usart_base)
uint16_t usart_recv(uint32_t usart)
USART Read a Received Data Word.
void usart_send(uint32_t usart, uint16_t data)
USART Send a Data Word.
void usart_wait_recv_ready(uint32_t usart)
USART Wait for Received Data Available.
void usart_wait_send_ready(uint32_t usart)
USART Wait for Transmit Data Buffer Empty.
bool usart_get_flag(uint32_t usart, uint32_t flag)
USART Read a Status Flag.
#define USART_SR_TXE
TXE: Transmit data buffer empty.
#define USART_SR_RXNE
RXNE: Read data register not empty.