Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpu/efm32/pm: fix blocking EM1 #18775

Merged
merged 2 commits into from
Oct 20, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
cpu/efm32/pm: allow blocking EM1
Aligns pm logic to #17883
  • Loading branch information
jue89 committed Oct 19, 2022
commit 360b36af164d1ba512915319d5efbfe161590d5f
5 changes: 4 additions & 1 deletion cpu/efm32/periph/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@ void pm_set(unsigned mode)
EMU_EnterEM2(true);
break;
case EFM32_PM_MODE_EM1:
default:
/* wait for next event or interrupt */
EMU_EnterEM1();
break;
default:
/* no sleep at all */
break;
}
}

Expand Down