From 95cd78840f0891e60f5ebecc8a8eb4fbaf3c2ebf Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Sun, 12 Jan 2025 01:17:36 -0600 Subject: PROJECT RESTRUCTURING Move the entire kernel into its own directory. Create new directories for system commands, libraries and other required essentials for a complete Unix-like operating system. Signed-off-by: Danny Holman --- include/kernel/serial.h | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 include/kernel/serial.h (limited to 'include/kernel/serial.h') diff --git a/include/kernel/serial.h b/include/kernel/serial.h deleted file mode 100644 index 4767722..0000000 --- a/include/kernel/serial.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef KERNEL_SERIAL_H -#define KERNEL_SERIAL_H - -#include -#include - -int serial_init(void); -void serial_putchar(char c); -char serial_getchar(void); - -static inline void serial_write(const char *data, size_t size) { - for (size_t i = 0; i < size; i++) - serial_putchar(data[i]); -} - -static inline void serial_read(char *data, size_t size) { - for (size_t i = 0; i < size; i++) - data[i] = serial_getchar(); -} - -#endif -- cgit v1.2.3