source: rtems/testsuites/libtests/rtems++/System.h @ 8f71a36

4.104.114.84.9
Last change on this file since 8f71a36 was 8f71a36, checked in by Ralf Corsepius <ralf.corsepius@…>, on Apr 20, 2004 at 7:09:31 AM

Remove stray white spaces.

  • 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.rtems.com/license/LICENSE.
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 uint32_t   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 uint32_t   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 uint32_t   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_APPLICATION_NEEDS_CONSOLE_DRIVER
116#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
117
118#define CONFIGURE_MAXIMUM_TASKS               8
119#define CONFIGURE_MAXIMUM_TIMERS              1
120#define CONFIGURE_MAXIMUM_SEMAPHORES          2
121#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES      1
122#define CONFIGURE_MAXIMUM_PARTITIONS          1
123#define CONFIGURE_MAXIMUM_REGIONS             1
124#define CONFIGURE_MAXIMUM_PERIODS             1
125#define CONFIGURE_MAXIMUM_USER_EXTENSIONS     0
126#define CONFIGURE_TICKS_PER_TIMESLICE       100
127
128#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
129#define CONFIGURE_INIT_TASK_STACK_SIZE      (4 * RTEMS_MINIMUM_STACK_SIZE)
130
131#define CONFIGURE_EXTRA_TASK_STACKS         (3 * RTEMS_MINIMUM_STACK_SIZE)
132
133#include <rtems/confdefs.h>
134
135/* end of include file */
Note: See TracBrowser for help on using the repository browser.