MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / uart_next_transmit

Function uart_next_transmit

core/uart.c:210–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210static 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
221static void uart_event(enum sched_item_id id) {
222 if (uart.txActive) {

Callers 2

uart_eventFunction · 0.85
uart_writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected