adapts to updated uart register layout

This commit is contained in:
2025-07-01 12:07:11 +02:00
parent b375ff4a72
commit d642f80972
14 changed files with 1518 additions and 955 deletions

View File

@@ -40,11 +40,11 @@ ssize_t __wrap_write(int fd, const void *ptr, size_t len) {
if (isatty(fd)) {
for (size_t jj = 0; jj < len; jj++) {
#if defined(BOARD_ehrenberg) || defined(BOARD_tgc_vp)
while (get_uart_rx_tx_reg_tx_free(uart) == 0)
while (get_uart_status_reg_tx_free(uart) == 0)
;
uart_write(uart, current[jj]);
if (current[jj] == '\n') {
while (get_uart_rx_tx_reg_tx_free(uart) == 0)
while (get_uart_status_reg_tx_free(uart) == 0)
;
uart_write(uart, '\r');
}