21 lines
532 B
C

#ifndef KEYBOARD_H
#define KEYBOARD_H
#include <stdbool.h>
#include <stdint.h>
void KeyboardInterruptHandler();
void keyboard_init();
bool keyboard_buffer_empty();
bool keyboard_buffer_full();
uint8_t keyboard_read_scancode();
void set_interrupt_vector(uint8_t vector, void (*handler)());
void enable_interrupt(uint8_t vector);
uint8_t translate_scancode_to_keycode(uint8_t scancode);
uint8_t translate_extended_scancode(uint8_t second_scancode);
void process_keycode(uint8_t keycode);
void log_keycode(uint8_t keycode);
#endif