Working PS/2 keyboard driver
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m19s

This commit is contained in:
2026-02-15 14:28:07 +01:00
parent b0b69f3e9e
commit 927d9e4c73
29 changed files with 374 additions and 29 deletions

15
libkb/kb.c Normal file
View File

@@ -0,0 +1,15 @@
#include <stdint.h>
#include <kb.h>
#include <m/system.h>
#include <m/kb_device.h>
#include <m/status.h>
int kb_read_key (void) {
char ch = 0;
int r = device_do (KB_DEVICE, KB_READ_KEY, &ch, NULL, NULL, NULL);
if (r == ST_OK)
return (int)ch;
else
return r;
}