OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [tests/] [libtests/] [rtems++/] [System.h] - Blame information for rev 562

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  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: System.h,v 1.2 2001-09-27 12:02:13 chris Exp $
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
 
24
extern "C"
25
{
26
  rtems_task Init(
27
    rtems_task_argument argument
28
    );
29
}
30
 
31
rtems_timer_service_routine Delayed_routine(
32
  rtems_id  ignored_id,
33
  void     *ignored_address
34
);
35
 
36
class 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
 
48
protected:
49
  virtual void body(rtems_task_argument argument);
50
 
51
public:
52
};
53
 
54
class Task2
55
  : public rtemsTask
56
{
57
  void screen4(void);
58
 
59
protected:
60
  virtual void body(rtems_task_argument argument);
61
 
62
public:
63
  Task2(const char* name,
64
        const rtems_task_priority initial_priority,
65
        const rtems_unsigned32 stack_size);
66
};
67
 
68
class Task3
69
  : public rtemsTask
70
{
71
  void screen6(void);
72
 
73
protected:
74
  virtual void body(rtems_task_argument argument);
75
 
76
public:
77
  Task3(const char* name,
78
        const rtems_task_priority initial_priority,
79
        const rtems_unsigned32 stack_size);
80
};
81
 
82
class EndTask
83
  : public rtemsTask
84
{
85
protected:
86
  virtual void body(rtems_task_argument argument);
87
 
88
public:
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
 
100
class Service_routine
101
  : public rtemsInterrupt
102
{
103
};
104
 
105
class 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 <confdefs.h>
134
 
135
/* end of include file */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.