From: Tilman Sauerbeck Date: Mon, 17 Jun 2019 04:42:48 +0000 (+0200) Subject: common: Implement __disable_irq() from CMSIS. X-Git-Url: http://git.code-monkey.de/?p=gps-watch.git;a=commitdiff_plain;h=fd7c982efc39206ed3211ebe5d4c1a73bc1572b1 common: Implement __disable_irq() from CMSIS. --- 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 *