source: rtems/testsuites/sptests/sp09/system.h @ c51645f

4.115
Last change on this file since c51645f was 7b5f6643, checked in by Chirayu Desai <cdesai@…>, on 12/24/13 at 13:32:37

sptests: refactor sp09/screen13 into a new test spclock_err02

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