source: rtems/testsuites/libtests/rtems++/System.h @ f00108f

4.104.114.84.95
Last change on this file since f00108f was 98e4ebf5, checked in by Joel Sherrill <joel.sherrill@…>, on 10/08/97 at 15:45:54

Fixed typo in the pointer to the license terms.

  • Property mode set to 100644
File size: 2.7 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 be
11 *  found in 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  void print_mode(rtems_mode mode, rtems_mode mask);
41 
42  void screen1(void);
43  void screen2(void);
44  void screen3(void);
45  void screen4(void);
46  void screen5(void);
47  void screen6(void);
48
49protected:
50  virtual void body(rtems_task_argument argument);
51
52public:
53};
54
55class Task2
56  : public rtemsTask
57{
58  void screen4(void);
59
60protected:
61  virtual void body(rtems_task_argument argument);
62
63public: 
64  Task2(const char* name,
65        const rtems_task_priority initial_priority,
66        const rtems_unsigned32 stack_size);
67};
68
69class Task3
70  : public rtemsTask
71{
72  void screen6(void);
73
74protected:
75  virtual void body(rtems_task_argument argument);
76
77public: 
78  Task3(const char* name,
79        const rtems_task_priority initial_priority,
80        const rtems_unsigned32 stack_size);
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};
94
95#ifdef 0
96
97//
98// Not sure this can be tested in a generic manner, any ideas anyone !!
99//
100
101class Service_routine
102  : public rtemsInterrupt
103{
104};
105
106class Io_during_interrupt
107  : pubic rtemsTimer
108{
109
110};
111
112#endif
113
114/* configuration information */
115
116#define CONFIGURE_SPTEST
117
118#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
119#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
120
121#define CONFIGURE_MAXIMUM_TIMERS              1
122#define CONFIGURE_MAXIMUM_SEMAPHORES          2
123#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES      1
124#define CONFIGURE_MAXIMUM_PARTITIONS          1
125#define CONFIGURE_MAXIMUM_REGIONS             1
126#define CONFIGURE_MAXIMUM_PERIODS             1
127#define CONFIGURE_MAXIMUM_USER_EXTENSIONS     0
128#define CONFIGURE_TICKS_PER_TIMESLICE       100
129
130#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
131#define CONFIGURE_INIT_TASK_STACK_SIZE        0x2000
132
133#include <confdefs.h>
134
135/* end of include file */
Note: See TracBrowser for help on using the repository browser.