Refactor input to use stdio drivers for Keyboard and TCP
This commit is contained in:
18
keyboard_stdio.h
Normal file
18
keyboard_stdio.h
Normal 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
|
||||
Reference in New Issue
Block a user