1 | /* |
---|
2 | * COPYRIGHT (c) 1989-2011. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.com/license/LICENSE. |
---|
8 | */ |
---|
9 | |
---|
10 | #include "tmacros.h" |
---|
11 | #include "test_support.h" |
---|
12 | |
---|
13 | /* functions */ |
---|
14 | |
---|
15 | rtems_task Init( |
---|
16 | rtems_task_argument argument |
---|
17 | ); |
---|
18 | |
---|
19 | rtems_task Test_task( |
---|
20 | rtems_task_argument argument |
---|
21 | ); |
---|
22 | |
---|
23 | /* configuration information */ |
---|
24 | |
---|
25 | #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER |
---|
26 | #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER |
---|
27 | |
---|
28 | #define CONFIGURE_SMP_APPLICATION |
---|
29 | #define CONFIGURE_SMP_MAXIMUM_PROCESSORS 4 |
---|
30 | |
---|
31 | #define CONFIGURE_MAXIMUM_TASKS \ |
---|
32 | (1 + CONFIGURE_SMP_MAXIMUM_PROCESSORS) |
---|
33 | |
---|
34 | #define CONFIGURE_MAXIMUM_SEMAPHORES 1 |
---|
35 | |
---|
36 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
37 | #define CONFIGURE_INIT_TASK_STACK_SIZE \ |
---|
38 | (3 * CONFIGURE_MINIMUM_TASK_STACK_SIZE) |
---|
39 | |
---|
40 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
41 | |
---|
42 | #define CONFIGURE_INIT_TASK_PRIORITY 5 |
---|
43 | #define CONFIGURE_INIT_TASK_INITIAL_MODES RTEMS_PREEMPT |
---|
44 | |
---|
45 | #include <rtems/confdefs.h> |
---|
46 | |
---|
47 | |
---|
48 | /* global variables */ |
---|
49 | |
---|
50 | /* |
---|
51 | * Keep the names and IDs in global variables so another task can use them. |
---|
52 | */ |
---|
53 | |
---|
54 | TEST_EXTERN volatile bool TaskRan[ CONFIGURE_SMP_MAXIMUM_PROCESSORS + 1 ]; |
---|
55 | |
---|
56 | /* |
---|
57 | * Keep the names and IDs in global variables so another task can use them. |
---|
58 | */ |
---|
59 | void Loop(void); |
---|
60 | void PrintTaskInfo( |
---|
61 | const char *task_name |
---|
62 | ); |
---|
63 | |
---|
64 | TEST_EXTERN volatile bool TestFinished; |
---|
65 | |
---|
66 | /* |
---|
67 | * Handy macros and static inline functions |
---|
68 | */ |
---|
69 | |
---|
70 | /* |
---|
71 | * Macro to hide the ugliness of printing the time. |
---|
72 | */ |
---|
73 | |
---|
74 | /* end of include file */ |
---|