5 months ago
interrupt configuration
Posted byThanhtu1310 points 4 repliesHi, I'm making some modification in example project ble_sleepmode. In the active session, i want to configurate P1_1 as an external interrupt source for 15 second; then the system will go to deepsleep mode. I want the system is only waken up by P1_1, i'll use wkupct_quadec driver before the system go to sleep.
For an normal interrupt, i'll use two functions: GPIO_EnableIRQ(), GPIO_RegisterCallback()
For external wake up only, i'll use 3 function : wkupct_register_callback(), wkupct_enable_irq(), wkupct_disable_irq()
I wonder after configurate normal interrupt, can i configurate wkupct interrupt normally since there is no disable function for normal interrupt?
5 months ago
in the active mode, i configurate P1_1 as an normal external interrupt. After that, i will configurate P1_1 as an only interrupt source which can wake the system up from sleep mode. how can i clear these configuration?
if i want to configurate active mode interrupt -> disable sleepmode interrupt(wkupct interrupt)
if i want to configurate sleepmode interrupt--> disable active mode interrupt
wkupct interrupt have function wkupct_disable_irq() to disable it but normal interrupt have none.
5 months ago
Hi Thanhtu131,
I assume that you could use the wake-up controller in both cases.
Thanks, PM_Dialog
5 months ago
Hi Thanhtu131,
>>>I wonder after configurate normal interrupt, can i configurate wkupct interrupt normally since there is no disable function for normal interrupt?
Could you please clarify this, so that I can understand what you are trying to do?
Thanks, PM_Dialog