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

Function init_keyboard

bsp/x86/drivers/keyboard.c:45–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43PRIVATE void kb_ack();
44
45PUBLIC void init_keyboard()
46{
47 kb_in.count = 0;
48 kb_in.p_head = kb_in.p_tail = kb_in.buf;
49
50 caps_lock = 0;
51 num_lock = 1;
52 scroll_lock = 0;
53
54 set_leds();
55}
56PUBLIC rt_bool_t keyboard_read(rt_uint32_t *pkey)
57{
58 t_8 scan_code;

Callers 1

rt_hw_console_initFunction · 0.85

Calls 1

set_ledsFunction · 0.85

Tested by

no test coverage detected