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.rtems.org/license/LICENSE. |
---|
12 | */ |
---|
13 | |
---|
14 | #include <bsp.h> |
---|
15 | #include <tmacros.h> |
---|
16 | |
---|
17 | /* functions */ |
---|
18 | |
---|
19 | rtems_task Init( |
---|
20 | rtems_task_argument argument |
---|
21 | ); |
---|
22 | |
---|
23 | rtems_task Task_1( |
---|
24 | rtems_task_argument argument |
---|
25 | ); |
---|
26 | |
---|
27 | rtems_task Task_2( |
---|
28 | rtems_task_argument argument |
---|
29 | ); |
---|
30 | |
---|
31 | rtems_task Task_3( |
---|
32 | rtems_task_argument argument |
---|
33 | ); |
---|
34 | |
---|
35 | void Task_switch( |
---|
36 | rtems_tcb *unused, |
---|
37 | rtems_tcb *heir |
---|
38 | ); |
---|
39 | |
---|
40 | /* configuration information */ |
---|
41 | |
---|
42 | #define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER |
---|
43 | #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER |
---|
44 | |
---|
45 | #define CONFIGURE_MAXIMUM_USER_EXTENSIONS 1 |
---|
46 | #define CONFIGURE_MAXIMUM_TASKS 4 |
---|
47 | #define CONFIGURE_TICKS_PER_TIMESLICE 100 |
---|
48 | |
---|
49 | #define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION |
---|
50 | |
---|
51 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
52 | |
---|
53 | #define CONFIGURE_DISABLE_SMP_CONFIGURATION |
---|
54 | |
---|
55 | #include <rtems/confdefs.h> |
---|
56 | |
---|
57 | /* global variables */ |
---|
58 | |
---|
59 | TEST_EXTERN rtems_id Task_id[ 4 ]; /* array of task ids */ |
---|
60 | TEST_EXTERN rtems_name Task_name[ 4 ]; /* array of task names */ |
---|
61 | |
---|
62 | TEST_EXTERN rtems_id Extension_id[ 4 ]; |
---|
63 | TEST_EXTERN rtems_name Extension_name[ 4 ]; /* array of task names */ |
---|
64 | |
---|
65 | /* array of task run counts */ |
---|
66 | TEST_EXTERN volatile uint32_t Run_count[ 4 ]; |
---|
67 | |
---|
68 | /* |
---|
69 | * Keep track of task switches |
---|
70 | */ |
---|
71 | |
---|
72 | struct taskSwitchLog { |
---|
73 | int taskIndex; |
---|
74 | rtems_time_of_day when; |
---|
75 | }; |
---|
76 | |
---|
77 | extern struct taskSwitchLog taskSwitchLog[]; |
---|
78 | extern int taskSwitchLogIndex; |
---|
79 | volatile extern int testsFinished; |
---|
80 | |
---|
81 | |
---|
82 | /* end of include file */ |
---|