projects
/
gps-watch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6095c15
)
common: Implement __disable_irq() from CMSIS.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Mon, 17 Jun 2019 04:42:48 +0000
(06:42 +0200)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Sun, 7 Jul 2019 07:58:43 +0000
(09:58 +0200)
src/common/fsl_common.h
patch
|
blob
|
history
diff --git
a/src/common/fsl_common.h
b/src/common/fsl_common.h
index 64cc95325fda7deeb282dcb30be52eb768f9217e..5d61699a47695064b575ca52a83ab8e2fb50b0aa 100644
(file)
--- 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
*