summaryrefslogtreecommitdiff
path: root/chip/stm32/clock-stm32f4.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/clock-stm32f4.c')
-rw-r--r--chip/stm32/clock-stm32f4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/stm32/clock-stm32f4.c b/chip/stm32/clock-stm32f4.c
index d6427fffc7..83a7b0a84e 100644
--- a/chip/stm32/clock-stm32f4.c
+++ b/chip/stm32/clock-stm32f4.c
@@ -462,7 +462,7 @@ void __idle(void)
struct rtc_time_reg rtc0, rtc1;
while (1) {
- asm volatile("cpsid i");
+ interrupt_disable();
t0 = get_time();
next_delay = __hw_clock_event_get() - t0.le.lo;
@@ -537,7 +537,7 @@ void __idle(void)
/* Normal idle : only CPU clock stopped */
asm("wfi");
}
- asm volatile("cpsie i");
+ interrupt_enable();
}
}