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-1997. |
---|
7 | * On-Line Applications Research Corporation (OAR). |
---|
8 | * Copyright assigned to U.S. Government, 1994. |
---|
9 | * |
---|
10 | * The license and distribution terms for this file may in |
---|
11 | * the file LICENSE in this distribution or at |
---|
12 | * http://www.OARcorp.com/rtems/license.html. |
---|
13 | * |
---|
14 | * $Id$ |
---|
15 | */ |
---|
16 | |
---|
17 | #include <tmacros.h> |
---|
18 | #include <rtems++/rtemsEvent.h> |
---|
19 | #include <rtems++/rtemsMessageQueue.h> |
---|
20 | #include <rtems++/rtemsTask.h> |
---|
21 | #include <rtems++/rtemsTaskMode.h> |
---|
22 | |
---|
23 | /* functions */ |
---|
24 | |
---|
25 | extern "C" |
---|
26 | { |
---|
27 | rtems_task Init( |
---|
28 | rtems_task_argument argument |
---|
29 | ); |
---|
30 | } |
---|
31 | |
---|
32 | rtems_timer_service_routine Delayed_routine( |
---|
33 | rtems_id ignored_id, |
---|
34 | void *ignored_address |
---|
35 | ); |
---|
36 | |
---|
37 | class Task1 |
---|
38 | : public rtemsTask |
---|
39 | { |
---|
40 | rtemsEvent end_init; |
---|
41 | |
---|
42 | void print_mode(rtems_mode mode, rtems_mode mask); |
---|
43 | |
---|
44 | void screen1(void); |
---|
45 | void screen2(void); |
---|
46 | void screen3(void); |
---|
47 | void screen4(void); |
---|
48 | void screen5(void); |
---|
49 | void screen6(void); |
---|
50 | |
---|
51 | protected: |
---|
52 | virtual void body(rtems_task_argument argument); |
---|
53 | |
---|
54 | public: |
---|
55 | void set_end_event(rtemsEvent& end_event) { end_init = end_event; } |
---|
56 | }; |
---|
57 | |
---|
58 | class Task2 |
---|
59 | : public rtemsTask |
---|
60 | { |
---|
61 | void screen4(void); |
---|
62 | |
---|
63 | protected: |
---|
64 | virtual void body(rtems_task_argument argument); |
---|
65 | |
---|
66 | public: |
---|
67 | Task2(const char* name, |
---|
68 | const rtems_task_priority initial_priority, |
---|
69 | const rtems_unsigned32 stack_size); |
---|
70 | }; |
---|
71 | |
---|
72 | class Task3 |
---|
73 | : public rtemsTask |
---|
74 | { |
---|
75 | void screen6(void); |
---|
76 | |
---|
77 | protected: |
---|
78 | virtual void body(rtems_task_argument argument); |
---|
79 | |
---|
80 | public: |
---|
81 | Task3(const char* name, |
---|
82 | const rtems_task_priority initial_priority, |
---|
83 | const rtems_unsigned32 stack_size); |
---|
84 | }; |
---|
85 | |
---|
86 | #ifdef 0 |
---|
87 | |
---|
88 | // |
---|
89 | // Not sure this can be tested in a generic manner, any ideas anyone !! |
---|
90 | // |
---|
91 | |
---|
92 | class Service_routine |
---|
93 | : public rtemsInterrupt |
---|
94 | { |
---|
95 | }; |
---|
96 | |
---|
97 | class Io_during_interrupt |
---|
98 | : pubic rtemsTimer |
---|
99 | { |
---|
100 | |
---|
101 | }; |
---|
102 | |
---|
103 | #endif |
---|
104 | |
---|
105 | /* configuration information */ |
---|
106 | |
---|
107 | #define CONFIGURE_SPTEST |
---|
108 | |
---|
109 | #define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER |
---|
110 | #define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER |
---|
111 | |
---|
112 | #define CONFIGURE_MAXIMUM_TIMERS 1 |
---|
113 | #define CONFIGURE_MAXIMUM_SEMAPHORES 2 |
---|
114 | #define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 1 |
---|
115 | #define CONFIGURE_MAXIMUM_PARTITIONS 1 |
---|
116 | #define CONFIGURE_MAXIMUM_REGIONS 1 |
---|
117 | #define CONFIGURE_MAXIMUM_PERIODS 1 |
---|
118 | #define CONFIGURE_MAXIMUM_USER_EXTENSIONS 0 |
---|
119 | #define CONFIGURE_TICKS_PER_TIMESLICE 100 |
---|
120 | |
---|
121 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
122 | #define CONFIGURE_INIT_TASK_STACK_SIZE 0x2000 |
---|
123 | |
---|
124 | #include <confdefs.h> |
---|
125 | |
---|
126 | /* end of include file */ |
---|