From 7c184cf08e65dc65e060c8c913219c96bde0fd41 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 7 Jan 2008 14:11:20 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@167 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/include/threads.h | 6 ++++++ src/templates/chconf.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src') 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. -- cgit v1.2.3