I have to detecte if the event was occured between Icu_DisableEdgeDetection(IcuChannel_14); and Icu_EnabledEdgeDetection(IcuChannel_14); but when i disable the Edge the ISR is also disabled automatically. Is there any solution to resolve this issue please?
TASK(Task_ASW_WakeUp_By_RF)
{
Icu_DisableEdgeDetection(IcuChannel_14);
for (volatile int i = 0; i < 4000; i++);
if (rf_event_occurred)
{ rf_event_occurred = FALSE;
rf_ata5785_it();
POWER_ON_MODE++;
}
else
{/*do nothibg*/
}
Icu_EnableEdgeDetection(IcuChannel_14);
(void) TerminateTask();
}
I tried to re-enabling the WKPU interrupt after disabling edge detection (Icu_DisableEdgeDetection) but that does not resolve the issue,