hello,dialog teams.
now i am studying dsps code.when device falls into extended sleep mode,device is halted with "wfi" and wait for interrupt event to wake up it.
my question is:'now,when device falls into extended sleep mode, interrupt is in enabled state?(because just before run 'wfi',"GLOBAL_INT_STOP()" has been executed.
如果禁用中断,如何de醒来vice from sleep mode?
Device:
Hi jetliang,
Please check this threadhttp://support.dialog-semiconductor.com/questions-about-um-b-006-sleep-m...
Thanks MT_dialog
Hi MT_dialog,Thanks for your help!
Now,my understanding is that:
When cpu runs to "WFI",cpu will be halted,and falls into sleep mode.though "GLOBAL_INT_STOP()" has been executed,but if there is any interrupt happens,it will wake up cpu,and cpu will run code from where it was halted,and execute "GLOBAL_INT_START()",and then to run relevant handler to completely wake up cpu.
is that right?
Hi jetliang,
When the code reaches to WFI() the CPU halts. If an interrupt occurs the CPU will resume, enable the interrupts, execute LP and SLP Handlers and continue with serving any BLE events may occur.
Thanks MT_dialog