We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
irq_lock
1 parent 304831e commit 87346d4Copy full SHA for 87346d4
zephyr/ra/portable/bsp_common.h
@@ -32,6 +32,12 @@
32
33
#include "bsp_cfg.h"
34
35
+#include <zephyr/irq.h>
36
+
37
+#define FSP_CRITICAL_SECTION_DEFINE unsigned int irq_lock_key
38
+#define FSP_CRITICAL_SECTION_ENTER irq_lock_key = irq_lock();
39
+#define FSP_CRITICAL_SECTION_EXIT irq_unlock(irq_lock_key);
40
41
/** Common macro for FSP header files. There is also a corresponding FSP_FOOTER macro at the end of this file. */
42
FSP_HEADER
43
0 commit comments