common: Implement __disable_irq() from CMSIS.
authorTilman Sauerbeck <tilman@code-monkey.de>
Mon, 17 Jun 2019 04:42:48 +0000 (06:42 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 7 Jul 2019 07:58:43 +0000 (09:58 +0200)
src/common/fsl_common.h

index 64cc95325fda7deeb282dcb30be52eb768f9217e..5d61699a47695064b575ca52a83ab8e2fb50b0aa 100644 (file)
@@ -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
      *