aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/include
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-10-23 11:39:45 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-10-23 11:39:45 +0000
commit309b1e411426e8d36d9a552ef2870da3db912a80 (patch)
tree5567c549d2ec3ed75d9deb228f2f6542e4b21b25 /os/kernel/include
parent78325ebdf2db30514e6b61e25b0c1894a8e29b79 (diff)
downloadChibiOS-309b1e411426e8d36d9a552ef2870da3db912a80.tar.gz
ChibiOS-309b1e411426e8d36d9a552ef2870da3db912a80.tar.bz2
ChibiOS-309b1e411426e8d36d9a552ef2870da3db912a80.zip
Improvements to the USB driver, first phase.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3449 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/include')
-rw-r--r--os/kernel/include/chthreads.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/os/kernel/include/chthreads.h b/os/kernel/include/chthreads.h
index 582b4e1e1..5848d5643 100644
--- a/os/kernel/include/chthreads.h
+++ b/os/kernel/include/chthreads.h
@@ -51,6 +51,16 @@
#define THD_STATE_WTMSG 12 /**< @brief Waiting for a message. */
#define THD_STATE_WTQUEUE 13 /**< @brief Waiting on an I/O queue. */
#define THD_STATE_FINAL 14 /**< @brief Thread terminated. */
+
+/**
+ * @brief Thread states as array of strings.
+ * @details Each element in an array initialized with this macro can be
+ * indexed using the numeric thread state values.
+ */
+#define THD_STATE_NAMES \
+ "READY", "CURRENT", "SUSPENDED", "WTSEM", "WTMTX", "WTCOND", "SLEEPING", \
+ "WTEXIT", "WTOREVT", "WTANDEVT", "SNDMSGQ", "SNDMSG", "WTMSG", "WTQUEUE", \
+ "FINAL"
/** @} */
/**