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 | |
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
-rw-r--r-- | demos/ARM7-LPC214x-GCC/chconf.h | 2 | ||||
-rw-r--r-- | src/include/threads.h | 6 | ||||
-rw-r--r-- | src/templates/chconf.h | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/demos/ARM7-LPC214x-GCC/chconf.h b/demos/ARM7-LPC214x-GCC/chconf.h index 4889fb590..eb1ebf7ea 100644 --- a/demos/ARM7-LPC214x-GCC/chconf.h +++ b/demos/ARM7-LPC214x-GCC/chconf.h @@ -110,7 +110,7 @@ /** Configuration option: If enabled then the threads have an option to serve
* messages by priority instead of FIFO order.
* @note requires \p CH_USE_MESSAGES.*/
-#define CH_USE_MESSAGES_PRIORITY
+//#define CH_USE_MESSAGES_PRIORITY
/** Configuration option: if specified then the
* \p chThdGetExitEventSource() function is included in the kernel.
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
diff --git a/src/templates/chconf.h b/src/templates/chconf.h index d8e5f88da..fbc5a6891 100644 --- a/src/templates/chconf.h +++ b/src/templates/chconf.h @@ -111,7 +111,7 @@ /** Configuration option: If enabled then the threads have an option to serve
* messages by priority instead of FIFO order.
* @note requires \p CH_USE_MESSAGES.*/
-#define CH_USE_MESSAGES_PRIORITY
+//#define CH_USE_MESSAGES_PRIORITY
/** Configuration option: if specified then the
* \p chThdGetExitEventSource() function is included in the kernel.
|