From 709148a4252c6d608808d9ed1380b02e94173d1b Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Sat, 4 Dec 2021 17:28:16 -0700 Subject: Moved timer to separate file --- src/sys/core.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'src/sys/core.c') diff --git a/src/sys/core.c b/src/sys/core.c index 0420df0..dd7a5e7 100644 --- a/src/sys/core.c +++ b/src/sys/core.c @@ -2,10 +2,11 @@ #include "../drivers/uart.h" #include "../util/time.h" #include "../sys/core.h" +#include "../sys/timer.h" #include "../sys/power.h" static char* os_info_h = "\033[93mInitialized the Real Time Operating System\033[0m\n\033[96mName\033[0m: \033[94mDendritOS\033[0m\n\033[96mVersion\033[0m: \033[95m"; -static char* os_info_t = "\033[0m\n\nQEMU\n====\n Exit : Ctrl-A x\n Monitor : Ctrl-A c\n\n"; +static char* os_info_t = "\033[0m\n\nQEMU\n====\n Monitor : Ctrl-A c\n Timer : Ctrl-t\n Exit : Ctrl-A x\n\n"; #ifndef VERSION static char* os_info_v = "?"; #else @@ -42,18 +43,6 @@ void sysinit() { enable_cntv(); } -void c_timer() { - // Reset the counter - write_cntv_tval(cntfrq); - - // Output the value - uart_string((char*)"Timer Value: "); - unsigned long v = read_cntv_tval(); - uart_10(v); - uart_char(0x20); - uart_hexn(v); -} - // Checks IRQ status void chk_irq_stat() { uart_string((char*)"Checking Enabled Services...\n"); -- cgit v1.2.1