};
mcu_power_t getPowerState() {
- mcu_power_t pState = MSP430_POWER_LPM3;
+ mcu_power_t pState = MSP430_POWER_LPM4;
// TimerA, USART0, USART1 check
if ((((TACCTL0 & CCIE) ||
(TACCTL1 & CCIE) ||
}
temp = msp430PowerBits[powerState] | SR_GIE;
__asm__ __volatile__( "bis %0, r2" : : "m" (temp) );
+ // All of memory may change at this point...
+ asm volatile ("" : : : "memory");
__nesc_disable_interrupt();
}