X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Flpc%2Fao_timer_lpc.c;h=a334ee0d286f8b78fa57ed5a80720545d52e795c;hp=62b16318107f74fc354783ab8520390ac54d524b;hb=7b1f4177d42e5e951a7db4289c847d355a785c2a;hpb=a6baf04bae3fe6a6b3da2f456419732ffeb4d056 diff --git a/src/lpc/ao_timer_lpc.c b/src/lpc/ao_timer_lpc.c index 62b16318..a334ee0d 100644 --- a/src/lpc/ao_timer_lpc.c +++ b/src/lpc/ao_timer_lpc.c @@ -17,6 +17,7 @@ */ #include +#include #define AO_SYSTICK (AO_LPC_SYSCLK / 2) @@ -53,10 +54,7 @@ void lpc_systick_isr(void) { if (lpc_systick.csr & (1 << LPC_SYSTICK_CSR_COUNTFLAG)) { ++ao_tick_count; -#if HAS_TASK_QUEUE - if (ao_task_alarm_tick && (int16_t) (ao_tick_count - ao_task_alarm_tick) >= 0) - ao_task_check_alarm((uint16_t) ao_tick_count); -#endif + ao_task_check_alarm(); #if AO_DATA_ALL if (++ao_data_count == ao_data_interval) { ao_data_count = 0;