diff options
author | Christian Cunningham <cc@localhost> | 2021-12-27 22:24:35 -0800 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2021-12-27 22:24:35 -0800 |
commit | c2ce4f14384a38e02848f5b32fd7774128ce54dd (patch) | |
tree | a35af1c1d4142fa88f903c820cdafc0ffad088e3 /src | |
parent | 602739b35d874de509fbe4bb0b5b9b0b754237d9 (diff) |
Made a define for the CPS
Diffstat (limited to 'src')
-rw-r--r-- | src/sys/timer.c | 5 |
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; |