uart: can now write more stuff
This commit is contained in:
parent
7841987b6e
commit
6609dfa4b1
@ -21,3 +21,9 @@ char uart_read(struct uart* uart) {
|
||||
|
||||
return uart->data;
|
||||
}
|
||||
|
||||
void uart_writen(struct uart* uart, const char* data, int len) {
|
||||
for (int i = 0; i < len; ++i) {
|
||||
uart_write(uart, data[i]);
|
||||
}
|
||||
}
|
||||
|
@ -14,3 +14,4 @@ int uart_rx_available(struct uart* uart);
|
||||
int uart_tx_available(struct uart* uart);
|
||||
void uart_write(struct uart* uart, const char c);
|
||||
char uart_read(struct uart* uart);
|
||||
void uart_writen(struct uart* uart, const char* data, int len);
|
||||
|
Loading…
Reference in New Issue
Block a user