z7 uart0 buffered read

This commit is contained in:
2024-07-23 17:08:11 +02:00
parent cbe8184fab
commit 926ef26000
10 changed files with 214 additions and 72 deletions

View File

@ -22,7 +22,7 @@ int _write(int fd, const char *ptr, int len) {
}
// we only support a single debug UART, so
// stdout and stderr are the same and go to the xiling stdout UART
// TODO switch to a hw_interface_write() instead?
// We output directely to avoid loops and allow debugging (not via a write)
if (fd < 3) {
int todo;