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 @@ -617,6 +617,11 @@ struct nil_system { #define _dbg_leave_lock() (nil.lock_cnt = (cnt_t)0) #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. */ /*===========================================================================*/