aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/systick.h
diff options
context:
space:
mode:
authorMichael Hope <michael.hope@linaro.org>2010-10-10 19:58:58 +1300
committerMichael Hope <michael.hope@linaro.org>2010-10-10 19:58:58 +1300
commit76e8745d80a822d9ae9a017c8f68a2f7f20695fc (patch)
tree486198ddd5aacea454f17a0f42514be2ede3999e /libmaple/systick.h
parent6fcd4cd306dbecf56f5b0b506a3c23762d1219fa (diff)
downloadlibrambutan-76e8745d80a822d9ae9a017c8f68a2f7f20695fc.tar.gz
librambutan-76e8745d80a822d9ae9a017c8f68a2f7f20695fc.zip
Make systick.h C++ safe. Expose the sys tick count via systick.h and remove other externs.
Diffstat (limited to 'libmaple/systick.h')
-rw-r--r--libmaple/systick.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/libmaple/systick.h b/libmaple/systick.h
index 7ec8497..ae1268a 100644
--- a/libmaple/systick.h
+++ b/libmaple/systick.h
@@ -33,14 +33,17 @@
#include "libmaple.h"
+#ifdef __cplusplus
+extern "C"{
+#endif
+
#define SYSTICK_CSR 0xE000E010 // Control and status register
#define SYSTICK_CNT 0xE000E018 // Current value register
#define SYSTICK_CSR_COUNTFLAG BIT(16)
-#ifdef __cplusplus
-extern "C"{
-#endif
+/** System elapsed time in milliseconds */
+volatile uint32 systick_timer_millis;
void systick_init(uint32 reload_val);
void systick_disable();