From 7ff724fe8f709440da9c730fdb8dcbaa4f989ed5 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Thu, 13 Aug 2020 23:59:14 -0400 Subject: FAT16 directory enumeration, making many functions static, new 'log' functions to wrap vga and serial --- src/kernel/serial.h | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/kernel/serial.h') 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 #include -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 -- cgit v1.2.3