aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/time.h
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2010-08-31 17:17:57 -0400
committerbnewbold <bnewbold@robocracy.org>2010-08-31 17:17:57 -0400
commite03d58f4dab4176514924baa3a1ff430bf5819b8 (patch)
treeb5c8269c34ab3bb4da0f7c52dea7049966753fb3 /wirish/time.h
parent01c38f5567bf624413d901c2b287e63cdccd03a6 (diff)
downloadlibrambutan-e03d58f4dab4176514924baa3a1ff430bf5819b8.tar.gz
librambutan-e03d58f4dab4176514924baa3a1ff430bf5819b8.zip
Further wirish portability progress
Sort of ugly changes. Compiles but untested.
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;