summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-04-22 20:30:31 -0500
committerKeith Packard <keithp@keithp.com>2013-05-07 21:30:26 -0700
commit02681adbc5919bd3713788da352aa36ace619ef4 (patch)
tree35157a9b6a1bc814ce823c87f0fedf5ba0e8ed85 /src
parenta453e2245996854e722346789f972fd088e33ba8 (diff)
altos/stm: Allow core timer to be excluded from build
This removes all of the support for the base 100Hz timer from the system, saving space when not needed Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/stm/ao_timer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/stm/ao_timer.c b/src/stm/ao_timer.c
index 5976eb3f..daf2f400 100644
--- a/src/stm/ao_timer.c
+++ b/src/stm/ao_timer.c
@@ -18,6 +18,11 @@
#include "ao.h"
#include <ao_task.h>
+#ifndef HAS_TICK
+#define HAS_TICK 1
+#endif
+
+#if HAS_TICK
volatile AO_TICK_TYPE ao_tick_count;
AO_TICK_TYPE
@@ -88,6 +93,8 @@ ao_timer_init(void)
(STM_SYSTICK_CSR_CLKSOURCE_HCLK_8 << STM_SYSTICK_CSR_CLKSOURCE));
}
+#endif
+
void
ao_clock_init(void)
{