1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/saml21/pm: allow blocking IDLE mode

This commit is contained in:
Jue 2022-10-28 18:26:13 +02:00
parent d0c11e568a
commit 75295df810

View File

@ -40,7 +40,6 @@ void pm_set(unsigned mode)
_mode = PM_SLEEPCFG_SLEEPMODE_STANDBY;
deep = 1;
break;
default: /* Falls through */
case SAML21_PM_MODE_IDLE:
DEBUG_PUTS("pm_set(): setting IDLE mode.");
#if !defined(PM_SLEEPCFG_SLEEPMODE_IDLE2)
@ -49,6 +48,9 @@ void pm_set(unsigned mode)
_mode = PM_SLEEPCFG_SLEEPMODE_IDLE2;
#endif
break;
default:
/* don't sleep at all */
return;
}
/* write sleep configuration */