uart: Add timeout and len report to uart receive

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

No files matched your search

+2 -2
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