diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-04-16 15:45:58 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-04-16 15:45:58 +0000 |
commit | 9d3bca73d4fa4cf5543c68902dfc6e589c7d7bb2 (patch) | |
tree | 0ae03f08fbbb8bcde38556230776f0b54039760a | |
parent | ac274162960ce4f07127bcc7eaf9811b976a5ee4 (diff) | |
download | ChibiOS-9d3bca73d4fa4cf5543c68902dfc6e589c7d7bb2.tar.gz ChibiOS-9d3bca73d4fa4cf5543c68902dfc6e589c7d7bb2.tar.bz2 ChibiOS-9d3bca73d4fa4cf5543c68902dfc6e589c7d7bb2.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9291 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/nil/include/ch.h | 5 | ||||
-rw-r--r-- | os/rt/include/chsystypes.h | 5 |
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. */
/*===========================================================================*/
|