8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6b4c66 commit 261dbf8Copy full SHA for 261dbf8
stm/systick.c
@@ -33,10 +33,12 @@ void sys_tick_wait_at_least(uint32_t stc, uint32_t delay_ms) {
33
if (stc_wait < stc) {
34
// stc_wait wrapped around
35
while (stc <= sys_tick_counter || sys_tick_counter < stc_wait) {
36
+ __WFI(); // enter sleep mode, waiting for interrupt
37
}
38
} else {
39
// stc_wait did not w 5178 rap around
40
while (stc <= sys_tick_counter && sys_tick_counter < stc_wait) {
41
42
43
44
0 commit comments