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

Function uart_set_timer

core/uart.c:109–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109static void uart_set_timer(bool force) {
110 if (uart_timer_should_run()) {
111 if (force || !sched_active(SCHED_UART)) {
112 sched_set(SCHED_UART, uart_char_ticks());
113 }
114 } else {
115 sched_clear(SCHED_UART);
116 }
117}
118
119static void uart_reset_rx_timeout(void) {
120 uart.rxTimeout = false;

Callers 3

uart_reset_rx_timeoutFunction · 0.85
uart_writeFunction · 0.85
uart_resetFunction · 0.85

Calls 5

uart_timer_should_runFunction · 0.85
sched_activeFunction · 0.85
sched_setFunction · 0.85
uart_char_ticksFunction · 0.85
sched_clearFunction · 0.85

Tested by

no test coverage detected