[0074691a] | 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-1997. |
---|
| 7 | * On-Line Applications Research Corporation (OAR). |
---|
| 8 | * Copyright assigned to U.S. Government, 1994. |
---|
| 9 | * |
---|
[98e4ebf5] | 10 | * The license and distribution terms for this file may be |
---|
| 11 | * found in the file LICENSE in this distribution or at |
---|
[0074691a] | 12 | * http://www.OARcorp.com/rtems/license.html. |
---|
| 13 | * |
---|
| 14 | * $Id$ |
---|
| 15 | */ |
---|
| 16 | |
---|
| 17 | #include <tmacros.h> |
---|
| 18 | #include <rtems++/rtemsEvent.h> |
---|
| 19 | #include <rtems++/rtemsMessageQueue.h> |
---|
| 20 | #include <rtems++/rtemsTask.h> |
---|
| 21 | #include <rtems++/rtemsTaskMode.h> |
---|
| 22 | |
---|
| 23 | /* functions */ |
---|
| 24 | |
---|
| 25 | extern "C" |
---|
| 26 | { |
---|
| 27 | rtems_task Init( |
---|
| 28 | rtems_task_argument argument |
---|
| 29 | ); |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | rtems_timer_service_routine Delayed_routine( |
---|
| 33 | rtems_id ignored_id, |
---|
| 34 | void *ignored_address |
---|
| 35 | ); |
---|
| 36 | |
---|
| 37 | class Task1 |
---|
| 38 | : public rtemsTask |
---|
| 39 | { |
---|
| 40 | void print_mode(rtems_mode mode, rtems_mode mask); |
---|
| 41 | |
---|
| 42 | void screen1(void); |
---|
| 43 | void screen2(void); |
---|
| 44 | void screen3(void); |
---|
| 45 | void screen4(void); |
---|
| 46 | void screen5(void); |
---|
| 47 | void screen6(void); |
---|
| 48 | |
---|
| 49 | protected: |
---|
| 50 | virtual void body(rtems_task_argument argument); |
---|
| 51 | |
---|
| 52 | public: |
---|
| 53 | }; |
---|
| 54 | |
---|
| 55 | class Task2 |
---|
| 56 | : public rtemsTask |
---|
| 57 | { |
---|
| 58 | void screen4(void); |
---|
| 59 | |
---|
| 60 | protected: |
---|
| 61 | virtual void body(rtems_task_argument argument); |
---|
| 62 | |
---|
| 63 | public: |
---|
| 64 | Task2(const char* name, |
---|
| 65 | const rtems_task_priority initial_priority, |
---|
| 66 | const rtems_unsigned32 stack_size); |
---|
| 67 | }; |
---|
| 68 | |
---|
| 69 | class Task3 |
---|
| 70 | : public rtemsTask |
---|
| 71 | { |
---|
[3a321e23] | 72 | void screen6(void); |
---|
| 73 | |
---|
| 74 | protected: |
---|
| 75 | virtual void body(rtems_task_argument argument); |
---|
| 76 | |
---|
| 77 | public: |
---|
| 78 | Task3(const char* name, |
---|
| 79 | const rtems_task_priority initial_priority, |
---|
| 80 | const rtems_unsigned32 stack_size); |
---|
[2d60095] | 81 | }; |
---|
| 82 | |
---|
| 83 | class EndTask |
---|
| 84 | : public rtemsTask |
---|
| 85 | { |
---|
| 86 | protected: |
---|
| 87 | virtual void body(rtems_task_argument argument); |
---|
| 88 | |
---|
| 89 | public: |
---|
| 90 | EndTask(const char* name, |
---|
| 91 | const rtems_task_priority initial_priority, |
---|
| 92 | const rtems_unsigned32 stack_size); |
---|
[0074691a] | 93 | }; |
---|
| 94 | |
---|
| 95 | #ifdef 0 |
---|
| 96 | |
---|
| 97 | // |
---|
| 98 | // Not sure this can be tested in a generic manner, any ideas anyone !! |
---|
| 99 | // |
---|
| 100 | |
---|
| 101 | class Service_routine |
---|
| 102 | : public rtemsInterrupt |
---|
| 103 | { |
---|
| 104 | }; |
---|
| 105 | |
---|
| 106 | class Io_during_interrupt |
---|
| 107 | : pubic rtemsTimer |
---|
| 108 | { |
---|
| 109 | |
---|
| 110 | }; |
---|
| 111 | |
---|
| 112 | #endif |
---|
| 113 | |
---|
| 114 | /* configuration information */ |
---|
| 115 | |
---|
| 116 | #define CONFIGURE_SPTEST |
---|
| 117 | |
---|
| 118 | #define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER |
---|
| 119 | #define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER |
---|
| 120 | |
---|
| 121 | #define CONFIGURE_MAXIMUM_TIMERS 1 |
---|
| 122 | #define CONFIGURE_MAXIMUM_SEMAPHORES 2 |
---|
| 123 | #define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 1 |
---|
| 124 | #define CONFIGURE_MAXIMUM_PARTITIONS 1 |
---|
| 125 | #define CONFIGURE_MAXIMUM_REGIONS 1 |
---|
| 126 | #define CONFIGURE_MAXIMUM_PERIODS 1 |
---|
| 127 | #define CONFIGURE_MAXIMUM_USER_EXTENSIONS 0 |
---|
| 128 | #define CONFIGURE_TICKS_PER_TIMESLICE 100 |
---|
| 129 | |
---|
| 130 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
| 131 | #define CONFIGURE_INIT_TASK_STACK_SIZE 0x2000 |
---|
| 132 | |
---|
| 133 | #include <confdefs.h> |
---|
| 134 | |
---|
| 135 | /* end of include file */ |
---|