source: rtems/testsuites/sptests/sp09/system.h @ 7b5f6643

4.11
Last change on this file since 7b5f6643 was 7b5f6643, checked in by Chirayu Desai <cdesai@…>, on Dec 24, 2013 at 1:32:37 PM

sptests: refactor sp09/screen13 into a new test spclock_err02

  • Property mode set to 100644
File size: 3.3 KB
RevLine 
[ac7d5ef0]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.
[ac7d5ef0]7 *  On-Line Applications Research Corporation (OAR).
8 *
[98e4ebf]9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
[d2b93bfd]11 *  http://www.rtems.com/license/LICENSE.
[ac7d5ef0]12 */
13
[4b374f36]14#include <tmacros.h>
[ac7d5ef0]15
[3a4ae6c]16/* functions */
[ac7d5ef0]17
[3a4ae6c]18rtems_task Init(
19  rtems_task_argument argument
20);
[ac7d5ef0]21
[3a4ae6c]22rtems_timer_service_routine Delayed_routine(
23  rtems_id  ignored_id,
24  void     *ignored_address
25);
[ac7d5ef0]26
[3a4ae6c]27rtems_task Task_1(
28  rtems_task_argument argument
29);
[ac7d5ef0]30
[3a4ae6c]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
[df49c60]77#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
78#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
[3a4ae6c]79
[df49c60]80#define CONFIGURE_MAXIMUM_TASKS              10
[3a4ae6c]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
[be1c11ed]90#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
91
[e457190]92#define CONFIGURE_EXTRA_TASK_STACKS         (20 * RTEMS_MINIMUM_STACK_SIZE)
[9a993ed5]93
[e8064503]94#include <rtems/confdefs.h>
[3a4ae6c]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 */
[1b4f2b30]100
[3a4ae6c]101TEST_EXTERN rtems_name Semaphore_name[ 4 ]; /* array of semaphore names */
102TEST_EXTERN rtems_id   Semaphore_id[ 4 ];   /* array of semaphore ids */
[1b4f2b30]103
[3a4ae6c]104TEST_EXTERN rtems_name Queue_name[ 3 ];     /* array of queue names */
105TEST_EXTERN rtems_id   Queue_id[ 3 ];       /* array of queue ids */
[1b4f2b30]106
[3a4ae6c]107TEST_EXTERN rtems_name Partition_name[ 2 ]; /* array of partition names */
108TEST_EXTERN rtems_id   Partition_id[ 2 ];   /* array of partition ids */
[1b4f2b30]109
[3a4ae6c]110TEST_EXTERN rtems_name Region_name[ 2 ];    /* array of region names */
111TEST_EXTERN rtems_id   Region_id[ 2 ];      /* array of region ids */
[1b4f2b30]112
[3a4ae6c]113TEST_EXTERN rtems_name Port_name[ 2 ];      /* array of port names */
114TEST_EXTERN rtems_id   Port_id[ 2 ];        /* array of port ids */
[1b4f2b30]115
[3a4ae6c]116TEST_EXTERN rtems_name Period_name[ 2 ];    /* array of period names */
117TEST_EXTERN rtems_id   Period_id[ 2 ];      /* array of period ids */
[1b4f2b30]118
[3a4ae6c]119TEST_EXTERN rtems_id   Junk_id;             /* id used to return errors */
[1b4f2b30]120
[3a4ae6c]121#define Internal_port_area (void *) 0x00001000
122#define External_port_area (void *) 0x00002000
[1b4f2b30]123
[c87608f]124TEST_EXTERN uint8_t   Partition_good_area[256] CPU_STRUCTURE_ALIGNMENT;
[29ff6c9c]125#define Partition_bad_area (void *) 0x00000005
[1b4f2b30]126
[c87608f]127TEST_EXTERN uint32_t   Region_good_area[4096] CPU_STRUCTURE_ALIGNMENT;
[29ff6c9c]128#define Region_bad_area    (void *) 0x00000005
[3a4ae6c]129#define REGION_START_OFFSET 1024
130#define REGION_LENGTH       512
[ac7d5ef0]131
132/* end of include file */
Note: See TracBrowser for help on using the repository browser.