@ramprakash08 Thank you for the response.
My aim is to attain feature like screensaver i.e., when in low power run mode, the screen should display some content and on touch it wakes up from sleep and goes to main window. What is happening at my end is that I have put 30s wakeup time but during that wakeup time the screen goes black. Once 30s expires the screen come backs and resume the previous task. Below are the changes done in power_mode_switch_bm project.
LPM_Init();
APP_PowerPreSwitchHook(LPM_PowerModeFullRun);
APP_PowerModeSwitch(LPM_PowerModeFullRun);
APP_PowerPostSwitchHook(LPM_PowerModeFullRun);
APP_Elcdif_Cfg();
while (1)
{
static uint32_t waitcount = 0;
static bool flag = false;
if (flag == false)
{
waitcount++;
if (waitcount > 200)
{
waitcount = 0;
flag = true;
CLOCK_SetMux(kCLOCK_LcdifPreMux, 0);
CLOCK_SetDiv(kCLOCK_LcdifPreDiv, 1);
CLOCK_SetDiv(kCLOCK_LcdifDiv, 1);
APP_GetWakeupConfig(s_targetPowerMode);
APP_SetWakeupConfig(s_targetPowerMode);
APP_PowerPreSwitchHook(LPM_PowerModeLowPowerRun);
APP_PowerModeSwitch(LPM_PowerModeLowPowerRun);
APP_PowerPostSwitchHook(LPM_PowerModeLowPowerRun);
__DSB();
__ISB();
__WFI();
__DSB();
__ISB();
GPIO_PinWrite(EXAMPLE_LED_GPIO, EXAMPLE_LED_GPIO_PIN, LOGIC_LED_OFF);
}
}
APP_Elcdif_Process();
}
Am I doing something wrong?