X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fcommon%2Ffsl_common.h;h=5d61699a47695064b575ca52a83ab8e2fb50b0aa;hb=fd7c982efc39206ed3211ebe5d4c1a73bc1572b1;hp=64cc95325fda7deeb282dcb30be52eb768f9217e;hpb=6095c15975770ac2067d6bdf2944f58352bb77d0;p=gps-watch.git 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 *