Thomas Morris
/
PROJ324_Final
Proj 324 Final
Fork of ELEC351_Group_T by
THREADS.hpp@52:99915f5240b2, 2018-01-09 (annotated)
- Committer:
- thomasmorris
- Date:
- Tue Jan 09 22:27:49 2018 +0000
- Revision:
- 52:99915f5240b2
- Parent:
- 48:244d6d81bb52
ITS THE FINAL COMMIT MESSAGE DO DO DO DO DO
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thomasmorris | 52:99915f5240b2 | 1 | /* |
thomasmorris | 52:99915f5240b2 | 2 | This is where we use threads |
thomasmorris | 52:99915f5240b2 | 3 | */ |
thomasmorris | 52:99915f5240b2 | 4 | |
thomasmorris | 47:6d128e500875 | 5 | #ifndef THREADS_hpp |
thomasmorris | 47:6d128e500875 | 6 | #define THREADS_hpp |
thomasmorris | 47:6d128e500875 | 7 | |
thomasmorris | 47:6d128e500875 | 8 | #include "mbed.h" |
thomasmorris | 47:6d128e500875 | 9 | #include "rtos.h" |
thomasmorris | 47:6d128e500875 | 10 | //Threads |
thomasmorris | 47:6d128e500875 | 11 | extern Thread t1; //Sampler Set to a highest priority |
thomasmorris | 47:6d128e500875 | 12 | extern Thread t2; |
thomasmorris | 47:6d128e500875 | 13 | extern Thread t3; |
thomasmorris | 47:6d128e500875 | 14 | extern Thread t4; |
thomasmorris | 47:6d128e500875 | 15 | extern Thread t5; |
thomasmorris | 48:244d6d81bb52 | 16 | extern Thread t6; |
thomasmorris | 47:6d128e500875 | 17 | |
thomasmorris | 47:6d128e500875 | 18 | //Thread IDs |
thomasmorris | 47:6d128e500875 | 19 | extern osThreadId idMain; |
thomasmorris | 47:6d128e500875 | 20 | extern osThreadId id1; |
thomasmorris | 47:6d128e500875 | 21 | extern osThreadId id2; |
thomasmorris | 47:6d128e500875 | 22 | extern osThreadId id3; |
thomasmorris | 47:6d128e500875 | 23 | extern osThreadId id4; |
thomasmorris | 47:6d128e500875 | 24 | extern osThreadId id5; |
thomasmorris | 48:244d6d81bb52 | 25 | extern osThreadId id6; |
thomasmorris | 47:6d128e500875 | 26 | |
thomasmorris | 47:6d128e500875 | 27 | #endif |