From d3cf3f08d1343d6b265516d5a79ce2d197b59d26 Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Sun, 4 Jan 2026 14:05:49 +0800 Subject: feat(file-system): implement read and write FAT32 File System and basic shell --- include/drivers/uart.h | 9 +-------- include/drivers/uart_color.h | 7 +++++++ 2 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 include/drivers/uart_color.h (limited to 'include/drivers') diff --git a/include/drivers/uart.h b/include/drivers/uart.h index 26c2394..85b04b0 100644 --- a/include/drivers/uart.h +++ b/include/drivers/uart.h @@ -1,5 +1,6 @@ #pragma once #include "common/types.h" +#include "drivers/uart_color.h" #define UART0 0x10000000L #define RHR 0 // Receive Holding Register (read mode) @@ -15,14 +16,6 @@ #define UART_RX_BUF_SIZE 128 -// ANSI Escape Codes for Modern Terminal Colors -#define ANSI_RESET "\033[0m" -#define ANSI_RED "\033[31m" -#define ANSI_GREEN "\033[32m" -#define ANSI_YELLOW "\033[33m" -#define ANSI_BLUE "\033[34m" -#define ANSI_CLEAR "\033[2J\033[1;1H" - namespace Drivers { void uart_init(); diff --git a/include/drivers/uart_color.h b/include/drivers/uart_color.h new file mode 100644 index 0000000..a63d57a --- /dev/null +++ b/include/drivers/uart_color.h @@ -0,0 +1,7 @@ +// ANSI Escape Codes for Modern Terminal Colors +#define ANSI_RESET "\033[0m" +#define ANSI_RED "\033[31m" +#define ANSI_GREEN "\033[32m" +#define ANSI_YELLOW "\033[33m" +#define ANSI_BLUE "\033[34m" +#define ANSI_CLEAR "\033[2J\033[1;1H" \ No newline at end of file -- cgit v1.2.3