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

Function uart_update_rxfifo_trigger

core/uart.c:201–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201static void uart_update_rxfifo_trigger(void) {
202 uint8_t level = 1;
203 if (uart_fifo_enabled() && !uart.rxTimeout) {
204 level = 0x0D080401 >> ((uart.fcr >> 6 & 3) * 8);
205 }
206 uart.isr &= ~(1 << 0);
207 uart.isr |= (uart.rfve >= level) << 0;
208}
209
210static void uart_next_transmit(void) {
211 /* Put character in transmit shift register */

Callers 3

uart_eventFunction · 0.85
uart_readFunction · 0.85
uart_writeFunction · 0.85

Calls 1

uart_fifo_enabledFunction · 0.85

Tested by

no test coverage detected