aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2021-12-27 22:24:35 -0800
committerChristian Cunningham <cc@localhost>2021-12-27 22:24:35 -0800
commitc2ce4f14384a38e02848f5b32fd7774128ce54dd (patch)
treea35af1c1d4142fa88f903c820cdafc0ffad088e3
parent602739b35d874de509fbe4bb0b5b9b0b754237d9 (diff)
Made a define for the CPS
-rw-r--r--src/sys/timer.c5
1 files changed, 4 insertions, 1 deletions
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;