projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a453e22
)
altos/stm: Allow core timer to be excluded from build
author
Keith Packard
<keithp@keithp.com>
Tue, 23 Apr 2013 01:30:31 +0000
(20:30 -0500)
committer
Keith Packard
<keithp@keithp.com>
Wed, 8 May 2013 04:30:26 +0000
(21:30 -0700)
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>
src/stm/ao_timer.c
patch
|
blob
|
history
diff --git
a/src/stm/ao_timer.c
b/src/stm/ao_timer.c
index 5976eb3f6657b6882d8cbfc668524f646f8387f4..daf2f4000f3a7c3fc012064ac431e5edc1378fdd 100644
(file)
--- 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)
{