[ISR disabled ] event is not detected when WKPU_edge dectection is disabled

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[ISR disabled ] event is not detected when WKPU_edge dectection is disabled

75 Views
gcel
Contributor I

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,

0 Kudos
0 Replies