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-04-22 20:30:31 -0500
commitae26e6f1f7be989427ed2985c3e7fe63181aeb80 (patch)
treec2856fc48d923aef97152cec13369964a21987b1 /src
parenta8e1e20f2af18d387ab53782f6c14fc4a2bf2925 (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.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/stm/ao_timer.c b/src/stm/ao_timer.c
index 8b7c2327..ff477a03 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
@@ -31,10 +36,6 @@ volatile __data uint8_t ao_data_interval = 1;
volatile __data uint8_t ao_data_count;
#endif
-void
-ao_debug_out(char c);
-
-
void stm_tim6_isr(void)
{
if (stm_tim6.sr & (1 << STM_TIM67_SR_UIF)) {
@@ -110,6 +111,8 @@ ao_timer_init(void)
(1 << STM_TIM67_CR1_CEN));
}
+#endif
+
void
ao_clock_init(void)
{