X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fkernel%2Fao.h;h=be663775e91fab86eb119d7690a67fb961c7e1ff;hp=f44b0e9e380c260941580465f86c9c336cc97903;hb=b8a9273162b7016afc29f4c98fc3b66324d4c85b;hpb=304dbcbff72c6fa66c71224ecf98ec55447ffff7 diff --git a/src/kernel/ao.h b/src/kernel/ao.h index f44b0e9e..be663775 100644 --- a/src/kernel/ao.h +++ b/src/kernel/ao.h @@ -42,6 +42,11 @@ extern char ao_getchar(void); typedef AO_PORT_TYPE ao_port_t; +#ifndef AO_TICK_TYPE +#define AO_TICK_TYPE uint32_t +#define AO_TICK_SIGNED int32_t +#endif + #if HAS_TASK #include #else @@ -100,11 +105,6 @@ extern AO_ROMCONFIG_SYMBOL uint32_t ao_radio_cal; * ao_timer.c */ -#ifndef AO_TICK_TYPE -#define AO_TICK_TYPE uint32_t -#define AO_TICK_SIGNED int32_t -#endif - extern volatile AO_TICK_TYPE ao_tick_count; /* Our timer runs at 100Hz */ @@ -124,7 +124,7 @@ ao_time_ns(void); /* Suspend the current task until ticks time has passed */ void -ao_delay(uint16_t ticks); +ao_delay(AO_TICK_TYPE ticks); /* Set the ADC interval */ void