From c2ce4f14384a38e02848f5b32fd7774128ce54dd Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Mon, 27 Dec 2021 22:24:35 -0800 Subject: Made a define for the CPS --- src/sys/timer.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/sys/timer.c b/src/sys/timer.c index d282789..207ea09 100644 --- a/src/sys/timer.c +++ b/src/sys/timer.c @@ -5,6 +5,9 @@ #include "../util/mutex.h" #include "../util/time.h" +/// Cycles Per Second +#define CPS 10 + #define SYS_TIMER_C extern char* os_info_v; @@ -14,7 +17,7 @@ struct Mutex exe_cnt_m = {.addr = &exe_cnt, .pid = NULL_PID}; void c_timer(void) { // Reset the counter - write_cntv_tval(cntfrq/100); + write_cntv_tval(cntfrq/CPS); unsigned int x = g_Drawer.x; unsigned int y = g_Drawer.y; -- cgit v1.2.1