Learn MoreFAQsTutorials

5 posts / 0 new
Last post
Thanhtu131
Offline
Last seen:3 weeks 1 day ago
加入:2018-09-18 17:44
中断配置iguration

Hi, 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?

Device:
PM_Dialog
Offline
Last seen:46 min 27 sec ago
工作人员
加入:2018-02-08 11:03
Hi Thanhtu131,

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

Thanhtu131
Offline
Last seen:3 weeks 1 day ago
加入:2018-09-18 17:44
在主动模式下,我

在主动模式下,我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.

PM_Dialog
Offline
Last seen:46 min 27 sec ago
工作人员
加入:2018-02-08 11:03
Hi Thanhtu131,

Hi Thanhtu131,

I assume that you could use the wake-up controller in both cases.

Thanks, PM_Dialog

Thanhtu131
Offline
Last seen:3 weeks 1 day ago
加入:2018-09-18 17:44
Hi, the wake-up controller

Hi, the wake-up controller can't be used in active mode. So i made some modification and it's possible to use wake-up controller in sleep mode and normal external interrupt in active state. i just have to configurate correctly.