X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcore%2Fao.h;h=5e1fbb9d05d6a39ea91ec6ef368efa746ca0de2e;hb=4d4ad34aec0c75c66162b992f1e52947e4685730;hp=1032dd33dcd794c25c016d8aad562c06750bef49;hpb=843fcab46d633e5bb6959286adeb68e41a4c30a3;p=fw%2Faltos diff --git a/src/core/ao.h b/src/core/ao.h index 1032dd33..5e1fbb9d 100644 --- a/src/core/ao.h +++ b/src/core/ao.h @@ -125,7 +125,12 @@ ao_panic(uint8_t reason); * ao_timer.c */ -extern volatile __data uint16_t ao_tick_count; +#ifndef AO_TICK_TYPE +#define AO_TICK_TYPE uint16_t +#define AO_TICK_SIGNED int16_t +#endif + +extern volatile __data AO_TICK_TYPE ao_tick_count; /* Our timer runs at 100Hz */ #define AO_HERTZ 100