Skip to content

Commit

Permalink
cc3200: Disable all wake sources on start-up.
Browse files Browse the repository at this point in the history
  • Loading branch information
danicampora committed Mar 15, 2015
1 parent ed20ac5 commit 78d7c45
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cc3200/mods/pybsleep.c
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 78d7c45

Please sign in to comment.