MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / get_byte_from_kb_buf

Function get_byte_from_kb_buf

bsp/x86/drivers/keyboard.c:262–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262PRIVATE t_8 get_byte_from_kb_buf()
263{
264 t_8 scan_code;
265
266 RT_ASSERT(kb_in.count>0);
267 scan_code = *(kb_in.p_tail);
268 kb_in.p_tail++;
269 if (kb_in.p_tail == kb_in.buf + KB_IN_BYTES) {
270 kb_in.p_tail = kb_in.buf;
271 }
272 kb_in.count--;
273
274 return scan_code;
275}
276
277PRIVATE void kb_wait() /* wait inpit cache of 8042 */
278{

Callers 1

keyboard_readFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected