git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@498 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2008-11-04 21:11:04 +00:00
parent a3811e1c18
commit 2f4fcf6b67
4 changed files with 14 additions and 15 deletions

View File

@ -29,7 +29,6 @@
/**
* Mutex structure.
* @extends ThreadsQueue
*/
typedef struct Mutex {
/** Queue of the threads sleeping on this Mutex.*/

View File

@ -32,6 +32,19 @@
/** Returned when the thread was made ready because of a reset. */
#define RDY_RESET -2
/** Pseudo priority used by the ready list header, do not use.*/
#define NOPRIO 0
/** Idle thread priority.*/
#define IDLEPRIO 1
/** Lowest user priority.*/
#define LOWPRIO 2
/** Normal user priority.*/
#define NORMALPRIO 64
/** Highest user priority.*/
#define HIGHPRIO 127
/** Greatest possible priority.*/
#define ABSPRIO 255
/** Infinite time specification for all the syscalls with a timeout
specification.*/
#define TIME_INFINITE 0
@ -41,6 +54,7 @@
/**
* Ready list header.
* @extends ThreadsQueue
*/
typedef struct {
ThreadsQueue r_queue;

View File

@ -29,7 +29,6 @@
/**
* Semaphore structure.
* @extends ThreadsQueue
*/
typedef struct {
/** Queue of the threads sleeping on this Semaphore.*/

View File

@ -149,19 +149,6 @@ struct Thread {
#define P_TERMINATE 4 /* Termination requested. */
#define P_SUSPENDED 8 /* Create suspended (old). */
/** Pseudo priority used by the ready list header, do not use.*/
#define NOPRIO 0
/** Idle thread priority.*/
#define IDLEPRIO 1
/** Lowest user priority.*/
#define LOWPRIO 2
/** Normal user priority.*/
#define NORMALPRIO 64
/** Highest user priority.*/
#define HIGHPRIO 127
/** Greatest possible priority.*/
#define ABSPRIO 255
/* Not an API, don't use into the application code.*/
Thread *init_thread(Thread *tp, tprio_t prio);