MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / intrh

Function intrh

src/ser.rs:97–108  ·  view source on GitHub ↗

Interrupt handler

()

Source from the content-addressed store, hash-verified

95
96// Interrupt handler
97fn intrh()
98{
99 let b = SER.lock().port.receive();
100 let c = match b as char
101 {
102 '\r' => '\n',
103 '\x7F' => '\x08',
104 c => c,
105 };
106
107 crate::sys::console::keyhandler(c);
108}
109
110
111// Print formatting

Callers

nothing calls this directly

Calls 3

keyhandlerFunction · 0.85
receiveMethod · 0.80
lockMethod · 0.80

Tested by

no test coverage detected