source: rtems/c/src/tests/libtests/rtems++/System.h @ 17177e2c

4.104.114.84.95
Last change on this file since 17177e2c was 08311cc3, checked in by Joel Sherrill <joel.sherrill@…>, on 11/17/99 at 17:51:34

Updated copyright notice.

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