HAL driver for ps2 keyboards. More...
#include <stdbool.h>Go to the source code of this file.
Macros | |
| #define | PS2_KEYBOARD_DATA_PORT 0x60 |
| #define | PS2_KEYBOARD_STATUS_PORT 0x64 |
Functions | |
| bool | ps2_poll (void) |
| poll the ps/2 keyboard for data | |
HAL driver for ps2 keyboards.
While ps2 keyboards are rarely seen ever in the real world, the interface still exists and the bootloader, rather than using the ps2 port directly, connects it directly to your system keyboard This gives us an easy way to interact with the keyboard without implementingUSB drivers.
| #define PS2_KEYBOARD_DATA_PORT 0x60 |
The low-level port/register where data is sent to/from the ps2_keyboard"
| #define PS2_KEYBOARD_STATUS_PORT 0x64 |
The low-level port/register where the ps2_keyboard writes its status
| bool ps2_poll | ( | void | ) |
poll the ps/2 keyboard for data
If there is data available, it is pushed to the kernel's keyboard event queue.
poll the ps/2 keyboard for data