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