aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/osal/chibios/osal.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/osal/chibios/osal.h')
-rw-r--r--os/hal/osal/chibios/osal.h26
1 files changed, 24 insertions, 2 deletions
diff --git a/os/hal/osal/chibios/osal.h b/os/hal/osal/chibios/osal.h
index b3d0fae2b..3633a1f02 100644
--- a/os/hal/osal/chibios/osal.h
+++ b/os/hal/osal/chibios/osal.h
@@ -55,6 +55,7 @@
#define OSAL_FAILED TRUE
/** @} */
+#if 0
/**
* @name Messages
* @{
@@ -63,6 +64,7 @@
#define MSG_RESET RDY_RESET
#define MSG_TIMEOUT RDY_TIMEOUT
/** @} */
+#endif
#if 0
/**
@@ -257,8 +259,7 @@ typedef struct {
#ifdef __cplusplus
extern "C" {
#endif
- void osalInit(void);
- void osalSysHalt(const char *reason);
+
#ifdef __cplusplus
}
#endif
@@ -268,6 +269,27 @@ extern "C" {
/*===========================================================================*/
/**
+ * @brief OSAL module initialization.
+ *
+ * @api
+ */
+static inline void osalInit(void) {
+
+}
+
+/**
+ * @brief System halt with error message.
+ *
+ * @param[in] reason the halt message pointer
+ *
+ * @api
+ */
+static inline void osalSysHalt(const char *reason) {
+
+ chSysHalt(reason);
+}
+
+/**
* @brief Enters a critical zone from thread context.
* @note This function cannot be used for reentrant critical zones.
*