Hi,
I have set the CC3235 launchpad to intermittently connected mode by using the sample program. It automatically wake up in certain interval and by activate the GPIO pin. I would like to differentiate normal wake up and GPIO wake up.
I have updated the function name in wakeLPDSFxn, but it is never called.
Could you please help me to differentiate the gpio wake up from regular wake up.
const PowerCC32XX_ConfigV1 PowerCC32XX_config = {
.policyInitFxn = PowerCC32XX_initPolicy,
.policyFxn = PowerCC32XX_sleepPolicy,
.enterLPDSHookFxn = wakeHookFxn,
.resumeLPDSHookFxn = wakeLPDSFxn,
.enablePolicy = true,
.enableGPIOWakeupLPDS = true,
.enableGPIOWakeupShutdown = true,
.enableNetworkWakeupLPDS = true,
.wakeupGPIOSourceLPDS = PRCM_LPDS_GPIO13,
.wakeupGPIOTypeLPDS = PRCM_LPDS_FALL_EDGE,
.wakeupGPIOFxnLPDS = gpioWakeFxn,
.wakeupGPIOFxnLPDSArg = 0,
.wakeupGPIOSourceShutdown = PRCM_HIB_GPIO13,
.wakeupGPIOTypeShutdown = PRCM_HIB_RISE_EDGE,
.ramRetentionMaskLPDS = PRCM_SRAM_COL_1|PRCM_SRAM_COL_2|PRCM_SRAM_COL_3|PRCM_SRAM_COL_4,
.keepDebugActiveDuringLPDS = true,
.ioRetentionShutdown = PRCM_IO_RET_GRP_1,
.pinParkDefs = parkInfo,
.numPins = 31
};
void gpioWakeFxn(uint_least8_t argument)
{
g_performOtaCommand = 1;
}
Regards,
Sundar