diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-01-07 14:11:20 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-01-07 14:11:20 +0000 |
commit | 7c184cf08e65dc65e060c8c913219c96bde0fd41 (patch) | |
tree | 79ae44cd43d639c5287a9f8a0e0b4c29dd9eb3ce /src/include/threads.h | |
parent | b1db8a9f7fe3bc2cd48c52e7c2c50e0e118f8889 (diff) | |
download | ChibiOS-7c184cf08e65dc65e060c8c913219c96bde0fd41.tar.gz ChibiOS-7c184cf08e65dc65e060c8c913219c96bde0fd41.tar.bz2 ChibiOS-7c184cf08e65dc65e060c8c913219c96bde0fd41.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@167 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/include/threads.h')
-rw-r--r-- | src/include/threads.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/threads.h b/src/include/threads.h index f451278cf..8b862f4f3 100644 --- a/src/include/threads.h +++ b/src/include/threads.h @@ -131,12 +131,18 @@ struct Thread { /** Thread state: After termination.*/
#define PREXIT 11
+#ifdef CH_USE_TERMINATE
/** Thread option: Termination requested flag.*/
#define P_TERMINATE 1
+#endif
+#ifdef CH_USE_RESUME
/** Thread option: Create suspended thread.*/
#define P_SUSPENDED 2
+#endif
+#ifdef CH_USE_MESSAGES_PRIORITY
/** Thread option: Serve messages by priority instead of FIFO order.*/
#define P_MSGBYPRIO 4
+#endif
/** Pseudo priority used by the ready list header, do not use.*/
#define NOPRIO 0
|