Changes in kernel/genarch/src/drivers/pl011/pl011.c [39e1b9a:28a5ebd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/drivers/pl011/pl011.c
r39e1b9a r28a5ebd 56 56 } 57 57 58 static void pl011_uart_ write(outdev_t *dev, const char *s, size_t n)58 static void pl011_uart_putuchar(outdev_t *dev, char32_t ch) 59 59 { 60 60 pl011_uart_t *uart = dev->data; … … 64 64 return; 65 65 66 const char *top = s + n; 67 assert(top >= s); 68 69 for (; s < top; s++) { 70 if (*s == '\n') 71 pl011_uart_sendb(uart, '\r'); 72 73 pl011_uart_sendb(uart, (uint8_t) *s); 66 if (!ascii_check(ch)) 67 pl011_uart_sendb(uart, U_SPECIAL); 68 else { 69 if (ch == '\n') 70 pl011_uart_sendb(uart, (uint8_t) '\r'); 71 pl011_uart_sendb(uart, (uint8_t) ch); 74 72 } 75 73 } 76 74 77 75 static outdev_operations_t pl011_uart_ops = { 78 .write = pl011_uart_ write,76 .write = pl011_uart_putuchar, 79 77 .redraw = NULL, 80 78 .scroll_up = NULL,
Note:
See TracChangeset
for help on using the changeset viewer.