[EFM32] Sleep: Remove EM4 entry, as there is no way of configuring EM4 wakeup in mbed.

pull/1428/head
Aksel Skauge Mellbye 2015-11-16 13:27:35 +01:00
parent 4e217bacf9
commit c0253c1fa5
1 changed files with 3 additions and 9 deletions

View File

@ -41,10 +41,7 @@ uint32_t sleep_block_counter[NUM_SLEEP_MODES] = {0};
/** /**
* Sleep mode. * Sleep mode.
* Enter Energy Mode 1, which turns off the clock to the CPU. * Enter the lowest possible sleep mode that is not blocked by ongoing activity.
*
* In EM1, the CPU is sleeping and the power consumption is only 50 μA/MHz.
* All peripherals, including DMA, PRS and memory system, are still available.
*/ */
void sleep(void) void sleep(void)
{ {
@ -57,13 +54,10 @@ void sleep(void)
} else if (sleep_block_counter[2] > 0) { } else if (sleep_block_counter[2] > 0) {
/* Blocked everything below EM2, enter EM2 */ /* Blocked everything below EM2, enter EM2 */
EMU_EnterEM2(true); EMU_EnterEM2(true);
} else if (sleep_block_counter[3] > 0) { } else {
/* Blocked everything below EM3, enter EM3 */ /* Blocked everything below EM3, enter EM3 */
EMU_EnterEM3(true); EMU_EnterEM3(true);
} else{ } /* Never enter EM4, as mbed has no way of configuring EM4 wakeup */
/* Nothing is blocked, enter EM4 */
EMU_EnterEM4();
}
return; return;
} }