build system refresh

This commit is contained in:
2026-07-16 16:09:12 -05:00
parent b588634253
commit 3246dbbd19
49 changed files with 185 additions and 203 deletions

View File

@@ -2,6 +2,8 @@
#include <drivers/ps2/ps2.h>
#include <vfs.h>
static const char scancode_to_ascii[] = {
0, 27, '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '-', '=', '\b',
'\t', 'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', '[', ']', '\n',
@@ -73,7 +75,11 @@ int init_ps2() {
write_ccb(ccb);
return 0;
}
}
void ps2_init_kbd(vfs_node_t* dev) {
}
char ps2_get_ascii(uint8_t scancode) {
if (scancode & 0x80) {
@@ -88,4 +94,5 @@ char ps2_get_ascii(uint8_t scancode) {
}
return 0;
}
}

View File

@@ -18,8 +18,10 @@
#ifndef __ASSEMBLER__
#include <stdint.h>
#include <vfs.h>
int init_ps2();
void ps2_init_kbd(vfs_node_t* dev);
uint8_t ps2_read_data();
char ps2_get_ascii(uint8_t scancode);