summaryrefslogtreecommitdiff
path: root/chip/stm32/clock-stm32h7.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/clock-stm32h7.c')
-rw-r--r--chip/stm32/clock-stm32h7.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/stm32/clock-stm32h7.c b/chip/stm32/clock-stm32h7.c
index 696105b4f1..ae60d596f1 100644
--- a/chip/stm32/clock-stm32h7.c
+++ b/chip/stm32/clock-stm32h7.c
@@ -471,7 +471,7 @@ void __idle(void)
uint16_t lptim0;
while (1) {
- asm volatile("cpsid i");
+ interrupt_disable();
t0 = get_time();
next_delay = __hw_clock_event_get() - t0.le.lo;
@@ -538,7 +538,7 @@ void __idle(void)
/* normal idle : only CPU clock stopped */
asm("wfi");
}
- asm volatile("cpsie i");
+ interrupt_enable();
}
}