From: Keith Packard Date: Tue, 23 Apr 2013 01:30:31 +0000 (-0500) Subject: altos/stm: Allow core timer to be excluded from build X-Git-Tag: 1.2.1~35 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=02681adbc5919bd3713788da352aa36ace619ef4;ds=sidebyside 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 --- 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 +#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) {