AnsweredAssumed Answered

LPC55S69: precondition for PowerDown API

Question asked by Eugene Hiihtaja on Dec 3, 2019
Latest reply on Dec 10, 2019 by Eugene Hiihtaja

Hello !

 

I try to add PowerDown mode to tickless implementation of RTOS in SDK and all calculation located in this macro:

configPOST_SLEEP_PROCESSING(xExpectedIdleTime);

 

Enter_PowerDown() is called there. Looks like it enter to PowerDown mode but it is not possible to wakeup it back by any source.

 

But freertos handler disable all interrupts and enable those back after.

 

__disable_irq();

...

POWER_EnterPowerDown(
(kPDRUNCFG_PD_LDOMEM | kPDRUNCFG_PD_FRO32K),
0x7FFF,
WAKEUP_GPIO_GLOBALINT0 | WAKEUP_GPIO_GLOBALINT1 |
WAKEUP_RTC_LITE_ALARM_WAKEUP
| WAKEUP_FLEXCOMM3 | WAKEUP_OS_EVENT_TIMER,
1);

....

_enable_irg()

 

Can wakeup works with disabled interrupts ?

What are other preconditions ?

 

Regards,

Eugene

Outcomes