Changeset 6b03a3c in mainline for kernel/genarch/src/drivers/omap/uart.c
- Timestamp:
- 2025-04-18T13:45:46Z (4 days ago)
- Children:
- 9fc15f9
- Parents:
- 94abc30c (diff), 25fdb2d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Wayne Thornton <wmthornton-dev@…> (2025-04-18 13:45:46)
- git-committer:
- GitHub <noreply@…> (2025-04-18 13:45:46)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/drivers/omap/uart.c
r94abc30c r6b03a3c 49 49 } 50 50 51 static void omap_uart_ putuchar(outdev_t *dev, char32_t ch)51 static void omap_uart_write(outdev_t *dev, const char *s, size_t n) 52 52 { 53 53 omap_uart_t *uart = dev->data; 54 if (!ascii_check(ch)) { 55 omap_uart_txb(uart, U_SPECIAL); 56 } else { 57 if (ch == '\n') 54 55 const char *top = s + n; 56 assert(top >= s); 57 58 for (; s < top; s++) { 59 if (*s == '\n') 58 60 omap_uart_txb(uart, '\r'); 59 omap_uart_txb(uart, ch); 61 62 omap_uart_txb(uart, (uint8_t) *s); 60 63 } 61 64 } 62 65 63 66 static outdev_operations_t omap_uart_ops = { 64 .write = omap_uart_ putuchar,67 .write = omap_uart_write, 65 68 .redraw = NULL, 66 69 .scroll_up = NULL,
Note:
See TracChangeset
for help on using the changeset viewer.