Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | mjames | 1 | /* $Header: c:/cvsroot/bart/rt_ext.h,v 1.4 2004/03/09 00:45:19 mjames Exp $ */ |
2 | /* |
||
3 | * $Log: rt_ext.h,v $ |
||
4 | * Revision 1.4 2004/03/09 00:45:19 mjames |
||
5 | * Corrected mistakes, made task numbers visible |
||
6 | * |
||
7 | * Revision 1.3 2004/03/06 12:17:48 mjames |
||
8 | * Moved headers around, made it clearer that there are no configurable |
||
9 | * parts to the OS unless it is rebuilt |
||
10 | * |
||
11 | * Revision 1.2 2004/03/04 21:52:58 mjames |
||
12 | * Made the files work with a demo project |
||
13 | * |
||
14 | * Revision 1.1.1.1 2004/03/03 22:54:33 mjames |
||
15 | * no message |
||
16 | * |
||
17 | */ |
||
18 | |||
19 | |||
20 | |||
21 | /*****************************************************************************/ |
||
22 | /* Global signal assignments */ |
||
23 | /* this signal same for all tasks, others may have different patterns */ |
||
24 | /* common signals */ |
||
25 | #define TIMER_SIG 0x80 |
||
26 | #define SERIAL_SIG 0x40 |
||
27 | |||
28 | /* some macros used when this was tested on the PC */ |
||
29 | typedef unsigned char Byte; |
||
30 | typedef bit Bool; |
||
31 | typedef idata char STACK_TYPE ; |
||
32 | typedef idata char * idata STACK_PTR_TYPE; |
||
33 | typedef idata char SIGNAL_TYPE ; |
||
34 | typedef idata char TIMER_TYPE ; |
||
35 | typedef data char TASKID_TYPE; |
||
36 | |||
37 | enum { FALSE=0,TRUE=1}; |
||
38 | |||
39 | /* this list of task numbers is used to set up BART */ |
||
40 | #define TASK_HIGH 3 /**< Highest priority task */ |
||
41 | #define SIO1_TASK 2 /**< Task recieving signals from SIO1 is task 2 */ |
||
42 | #define SIO2_TASK 1 /**< Task recieving signals from SIO2 is task 1 */ |
||
43 | #define TASK_LOW 0 /**< Lowest priority task */ |
||
44 | |||
45 | /** The task number that the main() function will inherit when |
||
46 | tasks_init() is called */ |
||
47 | |||
48 | #define MAIN_TASK_ID TASK_LOW |
||
49 | |||
50 | #include "rt_serial.h" |
||
51 | #include "rt_task.h" |
||
52 | |||
53 | |||
54 |