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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

212 次查看
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 项奖励
回复
0 回复数