| 208 | } |
| 209 | |
| 210 | static void uart_next_transmit(void) { |
| 211 | /* Put character in transmit shift register */ |
| 212 | uint8_t bits = 5 + (uart.lcr >> 0 & 3); |
| 213 | uart.tsr = uart.txfifo[uart.tfvi++ & (UART_FIFO_DEPTH - 1)] & ((1 << bits) - 1); |
| 214 | /* If FIFO is now empty, set corresponding status and interrupt */ |
| 215 | if (!likely(--uart.tfve)) { |
| 216 | uart.lsr |= 1 << 5; |
| 217 | uart.isr |= 1 << 1; |
| 218 | } |
| 219 | } |
| 220 | |
| 221 | static void uart_event(enum sched_item_id id) { |
| 222 | if (uart.txActive) { |
no outgoing calls
no test coverage detected