projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add support for "keyboard" input over the serial port.
[pintos-anon]
/
src
/
devices
/
input.h
diff --git a/src/devices/input.h
b/src/devices/input.h
new file mode 100644
(file)
index 0000000..
a2f50e9
--- /dev/null
+++ b/
src/devices/input.h
@@ -0,0
+1,12
@@
+#ifndef DEVICES_INPUT_H
+#define DEVICES_INPUT_H
+
+#include <stdbool.h>
+#include <stdint.h>
+
+void input_init (void);
+void input_putc (uint8_t);
+uint8_t input_getc (void);
+bool input_full (void);
+
+#endif /* devices/input.h */