source: rtems/testsuites/libtests/rtems++/System.h @ 1b22030

4.104.114.84.95
Last change on this file since 1b22030 was 1b22030, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/01/04 at 15:16:12
  • cpuuse/system.h: Include <rtems/confdefs.h> instead of <confdefs.h>.
  • malloctest/system.h: Include <rtems/confdefs.h> instead of <confdefs.h>.
  • monitor/system.h: Include <rtems/confdefs.h> instead of <confdefs.h>.
  • putenvtest/init.c: Include <rtems/confdefs.h> instead of <confdefs.h>.
  • rtems++/System.h: Include <rtems/confdefs.h> instead of <confdefs.h>.
  • rtmonuse/system.h: Include <rtems/confdefs.h> instead of <confdefs.h>.
  • stackchk/system.h: Include <rtems/confdefs.h> instead of <confdefs.h>.
  • termios/init.c: Include <rtems/confdefs.h> instead of <confdefs.h>.
  • Property mode set to 100644
File size: 2.7 KB
RevLine 
[0074691a]1/*  system.h
2 *
3 *  This include file contains information that is included in every
4 *  function in the test set.
5 *
[08311cc3]6 *  COPYRIGHT (c) 1989-1999.
[0074691a]7 *  On-Line Applications Research Corporation (OAR).
8 *
[98e4ebf5]9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
[2abdd87]11 *  http://www.rtems.com/license/LICENSE.
[0074691a]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,
[9919946a]65        const uint32_t   stack_size);
[0074691a]66};
67
68class Task3
69  : public rtemsTask
70{
[3a321e23]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,
[9919946a]79        const uint32_t   stack_size);
[2d60095]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,
[9919946a]91          const uint32_t   stack_size);
[0074691a]92};
93
[d9fe8e2]94#if 0
[0074691a]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
[df49c60]115#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
116#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
[0074691a]117
[df49c60]118#define CONFIGURE_MAXIMUM_TASKS               8
[0074691a]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
[9a993ed5]129#define CONFIGURE_INIT_TASK_STACK_SIZE      (4 * RTEMS_MINIMUM_STACK_SIZE)
130
131#define CONFIGURE_EXTRA_TASK_STACKS         (3 * RTEMS_MINIMUM_STACK_SIZE)
[0074691a]132
[1b22030]133#include <rtems/confdefs.h>
[0074691a]134
135/* end of include file */
Note: See TracBrowser for help on using the repository browser.