mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/efm32/pm: add debug output
This commit is contained in:
parent
360b36af16
commit
67b380034a
@ -22,18 +22,24 @@
|
||||
|
||||
#include "em_emu.h"
|
||||
|
||||
#define ENABLE_DEBUG 0
|
||||
#include "debug.h"
|
||||
|
||||
void pm_set(unsigned mode)
|
||||
{
|
||||
switch (mode) {
|
||||
case EFM32_PM_MODE_EM3:
|
||||
DEBUG_PUTS("[pm] enter EFM32_PM_MODE_EM3");
|
||||
/* after exiting EM3, clocks are restored */
|
||||
EMU_EnterEM3(true);
|
||||
break;
|
||||
case EFM32_PM_MODE_EM2:
|
||||
DEBUG_PUTS("[pm] enter EFM32_PM_MODE_EM2");
|
||||
/* after exiting EM2, clocks are restored */
|
||||
EMU_EnterEM2(true);
|
||||
break;
|
||||
case EFM32_PM_MODE_EM1:
|
||||
DEBUG_PUTS("[pm] enter EFM32_PM_MODE_EM1");
|
||||
/* wait for next event or interrupt */
|
||||
EMU_EnterEM1();
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user