X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fstm%2Fao_timer.c;h=daf2f4000f3a7c3fc012064ac431e5edc1378fdd;hp=5976eb3f6657b6882d8cbfc668524f646f8387f4;hb=4a90eec4b8ee4a35711aa74c13b3f30d12c0fe08;hpb=091582c446319fe4a79154153ece5372b2faec83 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) {