aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/osal/nil/osal.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/osal/nil/osal.h')
-rw-r--r--os/hal/osal/nil/osal.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/os/hal/osal/nil/osal.h b/os/hal/osal/nil/osal.h
index 2273a4789..0c3541efd 100644
--- a/os/hal/osal/nil/osal.h
+++ b/os/hal/osal/nil/osal.h
@@ -421,6 +421,26 @@ static inline void osalSysHalt(const char *reason) {
}
/**
+ * @brief Disables interrupts globally.
+ *
+ * @special
+ */
+static inline void osalSysDisable(void) {
+
+ chSysDisable();
+}
+
+/**
+ * @brief Enables interrupts globally.
+ *
+ * @special
+ */
+static inline void osalSysEnable(void) {
+
+ chSysEnable();
+}
+
+/**
* @brief Enters a critical zone from thread context.
* @note This function cannot be used for reentrant critical zones.
*