Refactor input to use stdio drivers for Keyboard and TCP

This commit is contained in:
Adolfo Reyna
2025-12-23 23:50:58 -05:00
parent 9f53148583
commit 9bc57f7ee2
5 changed files with 182 additions and 64 deletions

18
keyboard_stdio.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef KEYBOARD_STDIO_H
#define KEYBOARD_STDIO_H
#include <stdbool.h>
/**
* Initializes the keyboard stdio driver.
* This allows standard C input functions (getchar, scanf, etc.) to read from the USB keyboard.
*/
void keyboard_stdio_init(void);
/**
* Pushes a character into the keyboard input buffer.
* This should be called by the USB HID report handler.
*/
void keyboard_stdio_push_char(char c);
#endif