[f4a8ee1] | 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 | * |
---|
| 10 | * The license and distribution terms for this file may in |
---|
| 11 | * the file LICENSE in this distribution or at |
---|
| 12 | * http://www.OARcorp.com/rtems/license.html. |
---|
| 13 | * |
---|
| 14 | * $Id$ |
---|
| 15 | */ |
---|
| 16 | |
---|
| 17 | #include <rtems.h> |
---|
| 18 | |
---|
| 19 | #include <tmacros.h> |
---|
| 20 | |
---|
| 21 | /* functions */ |
---|
| 22 | |
---|
| 23 | rtems_task Init( |
---|
| 24 | rtems_task_argument argument |
---|
| 25 | ); |
---|
| 26 | |
---|
| 27 | rtems_task test_task( |
---|
| 28 | rtems_task_argument my_number |
---|
| 29 | ); |
---|
| 30 | |
---|
| 31 | void |
---|
| 32 | destory_all_tasks( |
---|
| 33 | const char *who |
---|
| 34 | ); |
---|
| 35 | |
---|
| 36 | boolean status_code_bad( |
---|
| 37 | rtems_status_code status_code |
---|
| 38 | ); |
---|
| 39 | |
---|
| 40 | void test1(); |
---|
| 41 | void test2(); |
---|
| 42 | void test3(); |
---|
| 43 | |
---|
| 44 | /* configuration information */ |
---|
| 45 | |
---|
| 46 | #define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER |
---|
| 47 | |
---|
| 48 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
| 49 | |
---|
[f59df6b2] | 50 | #define TASK_ALLOCATION_SIZE (5) |
---|
| 51 | #define CONFIGURE_MAXIMUM_TASKS rtems_resource_unlimited(TASK_ALLOCATION_SIZE) |
---|
| 52 | #define CONFIGURE_EXTRA_TASK_STACKS (62 * RTEMS_MINIMUM_STACK_SIZE) |
---|
| 53 | |
---|
| 54 | |
---|
[f4a8ee1] | 55 | #include <confdefs.h> |
---|
| 56 | |
---|
| 57 | /* global variables */ |
---|
| 58 | |
---|
| 59 | TEST_EXTERN rtems_id Global_variable; /* example global variable */ |
---|
| 60 | |
---|
| 61 | /* |
---|
| 62 | * Keep track of the task id's created, use a large array. |
---|
| 63 | */ |
---|
| 64 | |
---|
| 65 | #define MAX_TASKS (1000) |
---|
| 66 | #define TASK_INDEX_OFFSET (1) |
---|
| 67 | |
---|
| 68 | extern rtems_id task_id[MAX_TASKS]; |
---|
| 69 | |
---|
| 70 | /* |
---|
| 71 | * Increment the task name. |
---|
| 72 | */ |
---|
| 73 | |
---|
| 74 | #define NEXT_TASK_NAME(c1, c2, c3, c4) \ |
---|
| 75 | if (c4 == '9') { \ |
---|
| 76 | if (c3 == '9') { \ |
---|
| 77 | if (c2 == 'z') { \ |
---|
| 78 | if (c1 == 'z') { \ |
---|
| 79 | printf("not enough task letters for names !!!\n"); \ |
---|
| 80 | exit( 1 ); \ |
---|
| 81 | } else \ |
---|
| 82 | c1++; \ |
---|
| 83 | c2 = 'a'; \ |
---|
| 84 | } else \ |
---|
| 85 | c2++; \ |
---|
| 86 | c3 = '0'; \ |
---|
| 87 | } else \ |
---|
| 88 | c3++; \ |
---|
| 89 | c4 = '0'; \ |
---|
| 90 | } \ |
---|
| 91 | else \ |
---|
| 92 | c4++ \ |
---|
| 93 | |
---|
| 94 | |
---|
| 95 | /* end of include file */ |
---|