X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fcore%2Fao.h;h=5e1fbb9d05d6a39ea91ec6ef368efa746ca0de2e;hb=46f87373bc8c28442273ee4f8da3a352223150f5;hp=1032dd33dcd794c25c016d8aad562c06750bef49;hpb=11046bc89b3ce6386f1005fc8476b08f54d6f5fb;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