Changes in kernel/genarch/src/drivers/omap/uart.c [e9bc927:28a5ebd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/drivers/omap/uart.c
re9bc927 r28a5ebd 49 49 } 50 50 51 static void omap_uart_ write(outdev_t *dev, const char *s, size_t n)51 static void omap_uart_putuchar(outdev_t *dev, char32_t ch) 52 52 { 53 53 omap_uart_t *uart = dev->data; 54 55 const char *top = s + n; 56 assert(top >= s); 57 58 for (; s < top; s++) { 59 if (*s == '\n') 54 if (!ascii_check(ch)) { 55 omap_uart_txb(uart, U_SPECIAL); 56 } else { 57 if (ch == '\n') 60 58 omap_uart_txb(uart, '\r'); 61 62 omap_uart_txb(uart, (uint8_t) *s); 59 omap_uart_txb(uart, ch); 63 60 } 64 61 } 65 62 66 63 static outdev_operations_t omap_uart_ops = { 67 .write = omap_uart_ write,64 .write = omap_uart_putuchar, 68 65 .redraw = NULL, 69 66 .scroll_up = NULL,
Note:
See TracChangeset
for help on using the changeset viewer.