summaryrefslogtreecommitdiff
path: root/src/kernel/serial.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/serial.h')
-rw-r--r--src/kernel/serial.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/kernel/serial.h b/src/kernel/serial.h
index 2fb21a6..2ac359d 100644
--- a/src/kernel/serial.h
+++ b/src/kernel/serial.h
@@ -1,15 +1,19 @@
#ifndef SERIAL_H
#define SERIAL_H
-#include <stdbool.h>
#include <stdint.h>
-bool serr() __attribute__ ((pure));
+enum serial_port {
+ COM1,
+ COM2,
+ COM3,
+ COM4
+};
+
+void reset_error(enum serial_port n);
void init_serial();
-void sout(char b);
-void soutsz(const char *s);
-void soutsn(const char *s, uint8_t n);
-char sin();
-void sinsn(char *s, uint8_t n);
+
+void sout(enum serial_port n, uint8_t b);
+uint8_t sin(enum serial_port n);
#endif \ No newline at end of file