source: rtems/testsuites/libtests/rtems++/System.h @ 2d60095

4.104.114.84.95
Last change on this file since 2d60095 was 2d60095, checked in by Joel Sherrill <joel.sherrill@…>, on 08/26/97 at 19:24:22

Patches from Chris Johns to clean up test.

  • Property mode set to 100644
File size: 2.9 KB
Line 
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
25extern "C"
26
27  rtems_task Init(
28    rtems_task_argument argument
29    );
30}
31
32rtems_timer_service_routine Delayed_routine(
33  rtems_id  ignored_id,
34  void     *ignored_address
35);
36
37class Task1
38  : public rtemsTask
39{
40  rtemsEvent end_init;
41 
42  rtemsEvent end_init;
43 
44  rtemsEvent end_init;
45 
46  void print_mode(rtems_mode mode, rtems_mode mask);
47 
48  void screen1(void);
49  void screen2(void);
50  void screen3(void);
51  void screen4(void);
52  void screen5(void);
53  void screen6(void);
54
55  void set_end_event(rtemsEvent& end_event) { end_init = end_event; }
56protected:
57  virtual void body(rtems_task_argument argument);
58  void set_end_event(rtemsEvent& end_event) { end_init = end_event; }
59
60public:
61  void set_end_event(rtemsEvent& end_event) { end_init = end_event; }
62};
63
64class Task2
65  : public rtemsTask
66{
67  void screen4(void);
68
69protected:
70  virtual void body(rtems_task_argument argument);
71
72public: 
73  Task2(const char* name,
74        const rtems_task_priority initial_priority,
75        const rtems_unsigned32 stack_size);
76};
77
78class Task3
79  : public rtemsTask
80{
81};
82
83class EndTask
84  : public rtemsTask
85{
86protected:
87  virtual void body(rtems_task_argument argument);
88
89public: 
90  EndTask(const char* name,
91          const rtems_task_priority initial_priority,
92          const rtems_unsigned32 stack_size);
93  void screen6(void);
94
95protected:
96  virtual void body(rtems_task_argument argument);
97
98public: 
99  Task3(const char* name,
100        const rtems_task_priority initial_priority,
101        const rtems_unsigned32 stack_size);
102};
103
104#ifdef 0
105
106//
107// Not sure this can be tested in a generic manner, any ideas anyone !!
108//
109
110class Service_routine
111  : public rtemsInterrupt
112{
113};
114
115class Io_during_interrupt
116  : pubic rtemsTimer
117{
118
119};
120
121#endif
122
123/* configuration information */
124
125#define CONFIGURE_SPTEST
126
127#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
128#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
129
130#define CONFIGURE_MAXIMUM_TIMERS              1
131#define CONFIGURE_MAXIMUM_SEMAPHORES          2
132#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES      1
133#define CONFIGURE_MAXIMUM_PARTITIONS          1
134#define CONFIGURE_MAXIMUM_REGIONS             1
135#define CONFIGURE_MAXIMUM_PERIODS             1
136#define CONFIGURE_MAXIMUM_USER_EXTENSIONS     0
137#define CONFIGURE_TICKS_PER_TIMESLICE       100
138
139#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
140#define CONFIGURE_INIT_TASK_STACK_SIZE        0x2000
141
142#include <confdefs.h>
143
144/* end of include file */
Note: See TracBrowser for help on using the repository browser.