common: Implement __disable_irq() from CMSIS.
[gps-watch.git] / 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
      *