diff --git a/cc3200/mods/pybsleep.c b/cc3200/mods/pybsleep.c index e0df2c1ce4..aa87e5fd41 100644 --- a/cc3200/mods/pybsleep.c +++ b/cc3200/mods/pybsleep.c @@ -148,6 +148,12 @@ void pybsleep_init0 (void) { // register and enable the PRCM interrupt osi_InterruptRegister(INT_PRCM, (P_OSI_INTR_ENTRY)PRCMInterruptHandler, INT_PRIORITY_LVL_1); + // disable all LPDS and hibernate wake up sources (WLAN is disabed/enabled before entering LDPS mode) + MAP_PRCMLPDSWakeupSourceDisable(PRCM_LPDS_GPIO); + MAP_PRCMLPDSWakeupSourceDisable(PRCM_LPDS_TIMER); + MAP_PRCMHibernateWakeupSourceDisable(PRCM_HIB_SLOW_CLK_CTR | PRCM_HIB_GPIO2 | PRCM_HIB_GPIO4 | PRCM_HIB_GPIO13 | + PRCM_HIB_GPIO17 | PRCM_HIB_GPIO11 | PRCM_HIB_GPIO24 | PRCM_HIB_GPIO26); + // store the reset casue (if it's soft reset, leave it as it is) if (pybsleep_reset_cause != PYB_SLP_SOFT_RESET) { switch (MAP_PRCMSysResetCauseGet()) {