aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'wirish/time.h')
-rw-r--r--wirish/time.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/wirish/time.h b/wirish/time.h
index 45e82dc..33c04b4 100644
--- a/wirish/time.h
+++ b/wirish/time.h
@@ -35,10 +35,10 @@ extern "C"{
#include "nvic.h"
#include "systick.h"
+#include "boards.h"
-#define CYCLES_PER_MICROSECOND 72
#define US_PER_MS 1000
-#define MAPLE_RELOAD_VAL 72000
+#define MAPLE_RELOAD_VAL (CYCLES_PER_MICROSECOND * US_PER_MS)
extern volatile uint32 systick_timer_millis;