diff options
| author | danicampora | 2015-03-16 00:40:59 +0100 |
|---|---|---|
| committer | danicampora | 2015-03-16 00:42:16 +0100 |
| commit | 78d7c45b69063cf8009b903b177874317b071027 (patch) | |
| tree | 9e3226bc479984fb35c22fbfcaca13b5bbd1f815 | |
| parent | ed20ac56f77f5d2200f12fe38e73f89b56c1c44f (diff) | |
cc3200: Disable all wake sources on start-up.
| -rw-r--r-- | cc3200/mods/pybsleep.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cc3200/mods/pybsleep.c b/cc3200/mods/pybsleep.c index e0df2c1ce..aa87e5fd4 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()) { |
