diff options
author | aqua <aqua@iserlohn-fortress.net> | 2022-12-04 16:25:08 +0200 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2022-12-04 17:10:01 +0200 |
commit | 16241aafa780ebf188b2ceb96d51bf5af5d6bbe2 (patch) | |
tree | c41a990a838eb1bcc369fd6c2efedac6785ec99f /devices/uart.h | |
parent | Add FILE struct (diff) | |
download | kernel-16241aafa780ebf188b2ceb96d51bf5af5d6bbe2.tar.xz |
Remove custom include paths in makefiles
Add symlinks target to top-level makefile
Diffstat (limited to 'devices/uart.h')
-rw-r--r-- | devices/uart.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/devices/uart.h b/devices/uart.h new file mode 100644 index 0000000..ee74e98 --- /dev/null +++ b/devices/uart.h @@ -0,0 +1,17 @@ +#pragma once + +// TODO #include <arch/platform.h> +#include <stdio.h> + +enum UART { + COM1 = 0x3f8, + COM2 = 0x2f8, + COM3 = 0x3E8, + COM4 = 0x2E8, + COM5 = 0x5F8, + COM6 = 0x4F8, + COM7 = 0x5E8, + COM8 = 0x4E8, +}; + +FILE *uart_init(enum UART port); |