[f4a8ee1] | 1 | /* system.h |
---|
| 2 | * |
---|
| 3 | * This include file contains information that is included in every |
---|
| 4 | * function in the test set. |
---|
| 5 | * |
---|
[b28b126] | 6 | * COPYRIGHT (c) 1989-2008. |
---|
[f4a8ee1] | 7 | * On-Line Applications Research Corporation (OAR). |
---|
| 8 | * |
---|
| 9 | * The license and distribution terms for this file may in |
---|
| 10 | * the file LICENSE in this distribution or at |
---|
[c499856] | 11 | * http://www.rtems.org/license/LICENSE. |
---|
[f4a8ee1] | 12 | */ |
---|
| 13 | |
---|
| 14 | #include <rtems.h> |
---|
| 15 | |
---|
| 16 | /* functions */ |
---|
| 17 | |
---|
| 18 | rtems_task Init( |
---|
| 19 | rtems_task_argument argument |
---|
| 20 | ); |
---|
| 21 | |
---|
| 22 | rtems_task test_task( |
---|
| 23 | rtems_task_argument my_number |
---|
| 24 | ); |
---|
| 25 | |
---|
| 26 | void |
---|
[51a95ff9] | 27 | destroy_all_tasks( |
---|
[f4a8ee1] | 28 | const char *who |
---|
| 29 | ); |
---|
| 30 | |
---|
[f0157b8] | 31 | bool status_code_bad( |
---|
[f4a8ee1] | 32 | rtems_status_code status_code |
---|
| 33 | ); |
---|
| 34 | |
---|
[22bed3e] | 35 | extern void test1(void); |
---|
| 36 | extern void test2(void); |
---|
| 37 | extern void test3(void); |
---|
[f4a8ee1] | 38 | |
---|
| 39 | /* configuration information */ |
---|
| 40 | |
---|
[df49c60] | 41 | #include <bsp.h> /* for device driver prototypes */ |
---|
| 42 | |
---|
[a645637] | 43 | /* NOTICE: the clock driver is explicitly disabled */ |
---|
| 44 | #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER |
---|
[df49c60] | 45 | #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER |
---|
[f4a8ee1] | 46 | |
---|
[1117465] | 47 | #define CONFIGURE_UNIFIED_WORK_AREAS |
---|
[f4a8ee1] | 48 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
| 49 | |
---|
[7ab11c0] | 50 | #define TASK_ALLOCATION_SIZE (5) |
---|
[e53aae2] | 51 | #define CONFIGURE_UNLIMITED_OBJECTS |
---|
| 52 | #define CONFIGURE_UNLIMITED_ALLOCATION_SIZE TASK_ALLOCATION_SIZE |
---|
[a0653ada] | 53 | #define CONFIGURE_INIT_TASK_STACK_SIZE (8 * 1024) |
---|
[f59df6b2] | 54 | |
---|
| 55 | |
---|
[c8fea7a] | 56 | #include <rtems/confdefs.h> |
---|
[f4a8ee1] | 57 | |
---|
| 58 | /* |
---|
| 59 | * Keep track of the task id's created, use a large array. |
---|
| 60 | */ |
---|
| 61 | |
---|
[b28b126] | 62 | #define MAX_TASKS (1000) |
---|
[f4a8ee1] | 63 | #define TASK_INDEX_OFFSET (1) |
---|
| 64 | |
---|
| 65 | extern rtems_id task_id[MAX_TASKS]; |
---|
| 66 | |
---|
| 67 | /* |
---|
| 68 | * Increment the task name. |
---|
| 69 | */ |
---|
| 70 | |
---|
| 71 | #define NEXT_TASK_NAME(c1, c2, c3, c4) \ |
---|
| 72 | if (c4 == '9') { \ |
---|
| 73 | if (c3 == '9') { \ |
---|
| 74 | if (c2 == 'z') { \ |
---|
| 75 | if (c1 == 'z') { \ |
---|
| 76 | printf("not enough task letters for names !!!\n"); \ |
---|
| 77 | exit( 1 ); \ |
---|
| 78 | } else \ |
---|
| 79 | c1++; \ |
---|
| 80 | c2 = 'a'; \ |
---|
| 81 | } else \ |
---|
| 82 | c2++; \ |
---|
| 83 | c3 = '0'; \ |
---|
| 84 | } else \ |
---|
| 85 | c3++; \ |
---|
| 86 | c4 = '0'; \ |
---|
| 87 | } \ |
---|
| 88 | else \ |
---|
| 89 | c4++ \ |
---|
| 90 | |
---|
| 91 | |
---|
| 92 | /* end of include file */ |
---|