From fd7c982efc39206ed3211ebe5d4c1a73bc1572b1 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Mon, 17 Jun 2019 06:42:48 +0200 Subject: [PATCH] common: Implement __disable_irq() from CMSIS. --- src/common/fsl_common.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/fsl_common.h b/src/common/fsl_common.h index 64cc953..5d61699 100644 --- a/src/common/fsl_common.h +++ b/src/common/fsl_common.h @@ -380,6 +380,11 @@ _Pragma("diag_suppress=Pm120") { #endif + static inline void __disable_irq(void) + { + asm volatile("cpsid i" ::: "memory"); + } + /*! * @brief Disable the global IRQ * -- 2.30.2