Other Parts Discussed in Thread: TIMAC
Hi,
I am working for TIMAC - As I am working in battery based application, Incorporating Power management api's
//wakeup on configuration
PIN_setConfig(keyPinHandle, PIN_BM_IRQ, Board_KEY_SELECT | PIN_IRQ_NEGEDGE);
IOCIOShutdownSet(Board_KEY_SELECT, IOC_WAKE_ON_LOW); //<- one of the gpio is configured as input and cpu to wake on –Falling edge of the GPIO.
//standby mode configuration
PowerCtrlStateSet(PWRCTRL_STANDBY);
or
PowerCtrlStateSet(PWRCTRL_SHUTDOWN);
I have done the above configuration. But CPU stucks in PowerCtrlStateSet(PWRCTRL_STANDBY); and it never coms back and wake up is also not working.
Please let me know what may be the reason.
For your reference I have attached the source code. Please let me know if you have any further questions.