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

Function uart_reset

core/uart.c:468–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466}
467
468void uart_reset(void) {
469 memset(&uart, 0, sizeof(uart));
470 uart.lsr = 1 << 6 | 1 << 5;
471
472 uart_set_device_funcs();
473
474 uart_init_events();
475 uart_set_timer(true);
476}
477
478bool uart_save(FILE *image) {
479 return fwrite(&uart, offsetof(uart_state_t, transmit_char), 1, image) == 1;

Callers

nothing calls this directly

Calls 3

uart_set_device_funcsFunction · 0.85
uart_init_eventsFunction · 0.85
uart_set_timerFunction · 0.85

Tested by

no test coverage detected