mirror of https://github.com/rusefi/ChibiOS.git
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@498 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
a3811e1c18
commit
2f4fcf6b67
|
@ -29,7 +29,6 @@
|
|||
|
||||
/**
|
||||
* Mutex structure.
|
||||
* @extends ThreadsQueue
|
||||
*/
|
||||
typedef struct Mutex {
|
||||
/** Queue of the threads sleeping on this Mutex.*/
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
|
||||
/**
|
||||
* Semaphore structure.
|
||||
* @extends ThreadsQueue
|
||||
*/
|
||||
typedef struct {
|
||||
/** Queue of the threads sleeping on this Semaphore.*/
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue