diff options
author | Benji Dial <Benji3.141@gmail.com> | 2020-08-13 23:59:14 -0400 |
---|---|---|
committer | Benji Dial <Benji3.141@gmail.com> | 2020-08-13 23:59:14 -0400 |
commit | 7ff724fe8f709440da9c730fdb8dcbaa4f989ed5 (patch) | |
tree | e7f768ff56798bef3edc166a30e9cb8d7f25bd1e /src/kernel/serial.h | |
parent | 2ddbeb9f7214f6d3feef651eba83e6a9d120a743 (diff) | |
download | portland-os-7ff724fe8f709440da9c730fdb8dcbaa4f989ed5.tar.gz |
FAT16 directory enumeration, making many functions static, new 'log' functions to wrap vga and serial
Diffstat (limited to 'src/kernel/serial.h')
-rw-r--r-- | src/kernel/serial.h | 18 |
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 |