diff options
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); |