uart: Add timeout and len report to uart receive

This commit is contained in:
CTCaer
2019-12-16 22:15:21 +02:00
parent da112a0ae9
commit e3fca2bce5
4 changed files with 44 additions and 12 deletions

View File

@@ -76,7 +76,7 @@ typedef struct _uart_t
void uart_init(u32 idx, u32 baud);
void uart_wait_idle(u32 idx, u32 which);
void uart_send(u32 idx, u8 *buf, u32 len);
void uart_recv(u32 idx, u8 *buf, u32 len);
void uart_send(u32 idx, const u8 *buf, u32 len);
u32 uart_recv(u32 idx, u8 *buf, u32 len);
#endif