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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems/] [c/] [src/] [tests/] [sptests/] [sp09/] [system.h] - Blame information for rev 1779

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

Line No. Rev Author Line
1 158 chris
/*  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 208 chris
 *  $Id: system.h,v 1.2 2001-09-27 12:02:31 chris Exp $
14 158 chris
 */
15
 
16
#include <tmacros.h>
17
 
18
/* functions */
19
 
20
rtems_task Init(
21
  rtems_task_argument argument
22
);
23
 
24
rtems_timer_service_routine Delayed_routine(
25
  rtems_id  ignored_id,
26
  void     *ignored_address
27
);
28
 
29
rtems_task Task_1(
30
  rtems_task_argument argument
31
);
32
 
33
rtems_task Task_2(
34
  rtems_task_argument argument
35
);
36
 
37
rtems_task Task_3(
38
  rtems_task_argument argument
39
);
40
 
41
rtems_task Task_4(
42
  rtems_task_argument argument
43
);
44
 
45
rtems_isr Service_routine(
46
  rtems_vector_number ignored
47
);
48
 
49
rtems_timer_service_routine Io_during_interrupt(
50
  rtems_id ignored
51
);
52
 
53
void Screen1( void );
54
 
55
void Screen2( void );
56
 
57
void Screen3( void );
58
 
59
void Screen4( void );
60
 
61
void Screen5( void );
62
 
63
void Screen6( void );
64
 
65
void Screen7( void );
66
 
67
void Screen8( void );
68
 
69
void Screen9( void );
70
 
71
void Screen10( void );
72
 
73
void Screen11( void );
74
 
75
void Screen12( void );
76
 
77
void Screen13( void );
78
 
79
void Screen14( void );
80
 
81
/* configuration information */
82
 
83
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
84
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
85
 
86
#define CONFIGURE_MAXIMUM_TASKS              10
87
#define CONFIGURE_MAXIMUM_TIMERS              1
88
#define CONFIGURE_MAXIMUM_SEMAPHORES          2
89
#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES      1
90
#define CONFIGURE_MAXIMUM_PARTITIONS          1
91
#define CONFIGURE_MAXIMUM_REGIONS             1
92
#define CONFIGURE_MAXIMUM_PERIODS             1
93
#define CONFIGURE_MAXIMUM_USER_EXTENSIONS     0
94
#define CONFIGURE_TICKS_PER_TIMESLICE       100
95
 
96
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
97
 
98
#define CONFIGURE_EXTRA_TASK_STACKS         (2 * RTEMS_MINIMUM_STACK_SIZE)
99
 
100
#include <confdefs.h>
101
 
102
/* global variables */
103
 
104
TEST_EXTERN rtems_id   Task_id[ 11 ];       /* array of task ids */
105
TEST_EXTERN rtems_name Task_name[ 11 ];     /* array of task names */
106
 
107
TEST_EXTERN rtems_name Timer_name[ 2 ];     /* array of timer names */
108
TEST_EXTERN rtems_id   Timer_id[ 2 ];       /* array of timer ids */
109
 
110
TEST_EXTERN rtems_name Semaphore_name[ 4 ]; /* array of semaphore names */
111
TEST_EXTERN rtems_id   Semaphore_id[ 4 ];   /* array of semaphore ids */
112
 
113
TEST_EXTERN rtems_name Queue_name[ 3 ];     /* array of queue names */
114
TEST_EXTERN rtems_id   Queue_id[ 3 ];       /* array of queue ids */
115
 
116
TEST_EXTERN rtems_name Partition_name[ 2 ]; /* array of partition names */
117
TEST_EXTERN rtems_id   Partition_id[ 2 ];   /* array of partition ids */
118
 
119
TEST_EXTERN rtems_name Region_name[ 2 ];    /* array of region names */
120
TEST_EXTERN rtems_id   Region_id[ 2 ];      /* array of region ids */
121
 
122
TEST_EXTERN rtems_name Port_name[ 2 ];      /* array of port names */
123
TEST_EXTERN rtems_id   Port_id[ 2 ];        /* array of port ids */
124
 
125
TEST_EXTERN rtems_name Period_name[ 2 ];    /* array of period names */
126
TEST_EXTERN rtems_id   Period_id[ 2 ];      /* array of period ids */
127
 
128
TEST_EXTERN rtems_id   Junk_id;             /* id used to return errors */
129
 
130
#define Internal_port_area (void *) 0x00001000
131
#define External_port_area (void *) 0x00002000
132
 
133
TEST_EXTERN rtems_unsigned8 Partition_good_area[256] CPU_STRUCTURE_ALIGNMENT;
134
#define Partition_bad_area (void *) 0x00000006
135
 
136
TEST_EXTERN rtems_unsigned32 Region_good_area[4096] CPU_STRUCTURE_ALIGNMENT;
137
#define Region_bad_area    (void *) 0x00000006
138
#define REGION_START_OFFSET 1024
139
#define REGION_LENGTH       512
140
 
141
/* end of include file */

powered by: WebSVN 2.1.0

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