Major refactor of codebase
This commit is contained in:
parent
dbc6dc0d7c
commit
f478f8d38b
125 changed files with 195 additions and 29519 deletions
|
|
@ -1,41 +0,0 @@
|
|||
#include <stdint.h>
|
||||
#include "../flanterm/src/flanterm.h"
|
||||
|
||||
enum {
|
||||
LOG_INFO = 0,
|
||||
LOG_WARN,
|
||||
LOG_ERROR,
|
||||
LOG_SUCCESS,
|
||||
};
|
||||
|
||||
void klog(const char *func, const char *msg, ...);
|
||||
|
||||
int kprintf(const char *format_string, ...);
|
||||
|
||||
int serial_kprintf(const char *format_string, ...);
|
||||
|
||||
void print_char(struct flanterm_context *ft_ctx, char c);
|
||||
void print_str(struct flanterm_context *ft_ctx, char *str);
|
||||
void print_int(struct flanterm_context *ft_ctx, uint64_t i);
|
||||
void print_hex(struct flanterm_context *ft_ctx, uint64_t num);
|
||||
void print_bin(struct flanterm_context *ft_ctx, uint64_t num);
|
||||
|
||||
void serial_print_char(char c);
|
||||
void serial_print_int(uint64_t i);
|
||||
void serial_print_hex(uint64_t num);
|
||||
void serial_print_bin(uint64_t num);
|
||||
|
||||
void kernel_framebuffer_print(char *buffer, size_t n);
|
||||
void kernel_serial_print(char *buffer, size_t n);
|
||||
|
||||
char toupper(char c);
|
||||
char dtoc(int digit);
|
||||
|
||||
|
||||
#define ANSI_COLOR_RED "\x1b[31m"
|
||||
#define ANSI_COLOR_GREEN "\x1b[32m"
|
||||
#define ANSI_COLOR_YELLOW "\x1b[33m"
|
||||
#define ANSI_COLOR_BLUE "\x1b[34m"
|
||||
#define ANSI_COLOR_MAGENTA "\x1b[35m"
|
||||
#define ANSI_COLOR_CYAN "\x1b[36m"
|
||||
#define ANSI_COLOR_RESET "\x1b[0m"
|
||||
Loading…
Add table
Add a link
Reference in a new issue