aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/nil/include/ch.h5
-rw-r--r--os/rt/include/chsystypes.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/os/nil/include/ch.h b/os/nil/include/ch.h
index 31ec8bfe3..dc8dac6f0 100644
--- a/os/nil/include/ch.h
+++ b/os/nil/include/ch.h
@@ -618,6 +618,11 @@ struct nil_system {
#endif
/**
+ * @brief Utility to make the parameter a quoted string.
+ */
+#define __CH_STRINGIFY(a) #a
+
+/**
* @name Threads tables definition macros
* @{
*/
diff --git a/os/rt/include/chsystypes.h b/os/rt/include/chsystypes.h
index 50d963f95..527ff2e8b 100644
--- a/os/rt/include/chsystypes.h
+++ b/os/rt/include/chsystypes.h
@@ -115,6 +115,11 @@ typedef struct ch_system ch_system_t;
/* Module macros. */
/*===========================================================================*/
+/**
+ * @brief Utility to make the parameter a quoted string.
+ */
+#define __CH_STRINGIFY(a) #a
+
/*===========================================================================*/
/* External declarations. */
/*===========================================================================*/