diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2025-12-08 22:25:48 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2025-12-08 22:25:48 +0800 |
| commit | 8cf8be522133548ee25fdcb0258ddf3950a68bcf (patch) | |
| tree | 17d97abd848638d44de41e202d891dcaf4bb68c0 /include | |
| download | lume-8cf8be522133548ee25fdcb0258ddf3950a68bcf.tar.gz lume-8cf8be522133548ee25fdcb0258ddf3950a68bcf.tar.xz | |
The start of the project -- A MicroDOS
feat: Initial bare-metal RISC-V boot with UART
Diffstat (limited to 'include')
| -rw-r--r-- | include/common/types.h | 14 | ||||
| -rw-r--r-- | include/drivers/uart.h | 7 |
2 files changed, 21 insertions, 0 deletions
diff --git a/include/common/types.h b/include/common/types.h new file mode 100644 index 0000000..56500c5 --- /dev/null +++ b/include/common/types.h @@ -0,0 +1,14 @@ +#pragma once + +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned int uint32_t; +typedef unsigned long long uint64_t; + +typedef signed char int8_t; +typedef signed short int16_t; +typedef signed int int32_t; +typedef signed long long int64_t; + +typedef uint64_t size_t; +typedef uint64_t uintptr_t;
\ No newline at end of file diff --git a/include/drivers/uart.h b/include/drivers/uart.h new file mode 100644 index 0000000..8bf4560 --- /dev/null +++ b/include/drivers/uart.h @@ -0,0 +1,7 @@ +#pragma once + +namespace Drivers { + void uart_init(); + void uart_putc(char c); + void uart_puts(const char* s); +}
\ No newline at end of file |
