Update UART driver API (#14839)
* Add uart_puts() and uart_gets() * Add some docs * Rework API * Formatting * Update docs/uart_driver.md Co-authored-by: Sergey Vlasov <[email protected]> * Simplify a uart_write() loop * Update platforms/avr/drivers/uart.c Co-authored-by: Joel Challis <[email protected]> Co-authored-by: Sergey Vlasov <[email protected]> Co-authored-by: Joel Challis <[email protected]>
This commit is contained in:
8 files changed
+72
-25
No files matched your search
@@ -70,8 +70,12 @@
|
||||
|
||||
void uart_init(uint32_t baud);
|
||||
|
||||
void uart_putchar(uint8_t c);
|
||||
void uart_write(uint8_t data);
|
||||
|
||||
uint8_t uart_getchar(void);
|
||||
uint8_t uart_read(void);
|
||||
|
||||
void uart_transmit(const uint8_t *data, uint16_t length);
|
||||
|
||||
void uart_receive(uint8_t *data, uint16_t length);
|
||||
|
||||
bool uart_available(void);
|
||||
Reference in new issue
Block a user