uart: Add invert, get/set IIR and fifo empty functions

This commit is contained in:
CTCaer
2019-12-16 22:16:40 +02:00
parent e3fca2bce5
commit 2f43145131
4 changed files with 130 additions and 0 deletions

View File

@@ -78,5 +78,9 @@ void uart_init(u32 idx, u32 baud);
void uart_wait_idle(u32 idx, u32 which);
void uart_send(u32 idx, const u8 *buf, u32 len);
u32 uart_recv(u32 idx, u8 *buf, u32 len);
void uart_invert(u32 idx, bool enable, u32 invert_mask);
u32 uart_get_IIR(u32 idx);
void uart_set_IIR(u32 idx);
void uart_empty_fifo(u32 idx, u32 which);
#endif