Example #1
0
void keyboard_init (void) {
  // Install handler
  keyboard_install_handler ();

  // Clear LEDs
  keyboard_send_command (0xED);
  keyboard_send_command (0);

  // Fastest refresh-rate
  keyboard_send_command (0xF3);
  keyboard_send_command (0);

  // Activate keyboard
  keyboard_send_command (0xF4);
}
Example #2
0
void keyboard_init(void)
{
    while (inb(0x64) & 0x1) {
        inb(0x60);
    }

    keyboard_send_command(0xF4);
}