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

Function set_leds

bsp/x86/drivers/keyboard.c:295–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295PRIVATE void set_leds()
296{
297 t_8 leds = (caps_lock << 2) | (num_lock << 1) | scroll_lock;
298
299 kb_wait();
300 outb(KB_DATA, LED_CODE);
301 kb_ack();
302
303 kb_wait();
304 outb(KB_DATA, leds);
305 kb_ack();
306}
307
308/**
309 * @addtogroup QEMU

Callers 2

init_keyboardFunction · 0.85
keyboard_readFunction · 0.85

Calls 3

kb_waitFunction · 0.85
outbFunction · 0.85
kb_ackFunction · 0.85

Tested by

no test coverage detected