From 3da9ceb705aa0ff3751d690c2d056924dfe78d03 Mon Sep 17 00:00:00 2001 From: Hauke Petersen <hauke.petersen@fu-berlin.de> Date: Fri, 27 Jan 2017 12:47:59 +0100 Subject: [PATCH] cpu/cortexm: fixed cortexm_sleep() --- cpu/cortexm_common/include/cpu.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpu/cortexm_common/include/cpu.h b/cpu/cortexm_common/include/cpu.h index 982f8fc38f..18e08186ad 100644 --- a/cpu/cortexm_common/include/cpu.h +++ b/cpu/cortexm_common/include/cpu.h @@ -105,8 +105,10 @@ static inline void cortexm_sleep(int deep) } /* ensure that all memory accesses have completed and trigger sleeping */ + __disable_irq(); __DSB(); __WFI(); + __enable_irq(); } /** -- GitLab