1 | /* system.h |
---|
2 | * |
---|
3 | * This include file contains information that is included in every |
---|
4 | * function in the test set. |
---|
5 | * |
---|
6 | * COPYRIGHT (c) 1989-1999. |
---|
7 | * On-Line Applications Research Corporation (OAR). |
---|
8 | * |
---|
9 | * The license and distribution terms for this file may be |
---|
10 | * found in the file LICENSE in this distribution or at |
---|
11 | * http://www.OARcorp.com/rtems/license.html. |
---|
12 | * |
---|
13 | * $Id$ |
---|
14 | */ |
---|
15 | |
---|
16 | /* RTEMS API */ |
---|
17 | |
---|
18 | #include <rtems/system.h> |
---|
19 | #include <rtems/score/object.h> |
---|
20 | #include <rtems/score/stack.h> |
---|
21 | #include <rtems/score/states.h> |
---|
22 | #include <rtems/score/thread.h> |
---|
23 | |
---|
24 | unsigned32 print_thread_info( Thread_Control *thread, void * arg ); |
---|
25 | |
---|
26 | #include <tmacros.h> |
---|
27 | |
---|
28 | /* functions */ |
---|
29 | |
---|
30 | rtems_task Init( rtems_task_argument argument ); |
---|
31 | rtems_task RTEMS_task_1_through_3( rtems_task_argument argument ); |
---|
32 | |
---|
33 | /* global variables */ |
---|
34 | |
---|
35 | TEST_EXTERN rtems_id Task_id[ 4 ]; /* array of task ids */ |
---|
36 | TEST_EXTERN rtems_name Task_name[ 4 ]; /* array of task names */ |
---|
37 | |
---|
38 | /* configuration information */ |
---|
39 | |
---|
40 | #define CONFIGURE_SPTEST |
---|
41 | |
---|
42 | #define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER |
---|
43 | #define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER |
---|
44 | |
---|
45 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
46 | |
---|
47 | #define CONFIGURE_EXTRA_TASK_STACKS (4 * RTEMS_MINIMUM_STACK_SIZE) |
---|
48 | |
---|
49 | |
---|
50 | |
---|
51 | /* POSIX API */ |
---|
52 | |
---|
53 | #ifdef RTEMS_POSIX_API |
---|
54 | |
---|
55 | #include <pmacros.h> |
---|
56 | #include <unistd.h> |
---|
57 | #include <errno.h> |
---|
58 | #include <sched.h> |
---|
59 | |
---|
60 | /* functions */ |
---|
61 | |
---|
62 | void *pthread_1_through_3( void *argument ); |
---|
63 | |
---|
64 | /* global variables */ |
---|
65 | |
---|
66 | TEST_EXTERN pthread_t pthread_id[3]; /* array of pthread ids */ |
---|
67 | |
---|
68 | /* configuration information */ |
---|
69 | |
---|
70 | #define CONFIGURE_MAXIMUM_POSIX_THREADS 3 |
---|
71 | |
---|
72 | #endif |
---|
73 | |
---|
74 | |
---|
75 | |
---|
76 | /* ITRON API */ |
---|
77 | |
---|
78 | #ifdef RTEMS_ITRON_API |
---|
79 | |
---|
80 | #include <itron.h> |
---|
81 | #include <rtems/itron/task.h> |
---|
82 | |
---|
83 | /* functions */ |
---|
84 | |
---|
85 | void ITRON_task_2_through_4( void ); |
---|
86 | |
---|
87 | /* global variables */ |
---|
88 | |
---|
89 | TEST_EXTERN Objects_Locations location; |
---|
90 | |
---|
91 | |
---|
92 | /* configuration information */ |
---|
93 | |
---|
94 | #endif |
---|
95 | |
---|
96 | #include <confdefs.h> |
---|
97 | |
---|
98 | /* end of include file */ |
---|