4.104.114.84.95
Last change
on this file since 05e3b5b was
05e3b5b,
checked in by Joel Sherrill <joel.sherrill@…>, on 10/12/01 at 21:02:52
|
2001-10-12 Joel Sherrill <joel@…>
- unlimited/init.c, unlimited/system.h, unlimited/test1.c,
unlimited/test2.c, unlimited/test3.c, unlimited/unlimited.doc:
Fixed typo.
|
-
Property mode set to
100644
|
File size:
2.1 KB
|
Rev | Line | |
---|
[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 | * |
---|
| 9 | * The license and distribution terms for this file may in |
---|
| 10 | * the file LICENSE in this distribution or at |
---|
| 11 | * http://www.OARcorp.com/rtems/license.html. |
---|
| 12 | * |
---|
| 13 | * $Id$ |
---|
| 14 | */ |
---|
| 15 | |
---|
| 16 | #include <rtems.h> |
---|
| 17 | |
---|
| 18 | /* functions */ |
---|
| 19 | |
---|
| 20 | rtems_task Init( |
---|
| 21 | rtems_task_argument argument |
---|
| 22 | ); |
---|
| 23 | |
---|
| 24 | rtems_task test_task( |
---|
| 25 | rtems_task_argument my_number |
---|
| 26 | ); |
---|
| 27 | |
---|
| 28 | void |
---|
| 29 | destory_all_tasks( |
---|
| 30 | const char *who |
---|
| 31 | ); |
---|
| 32 | |
---|
| 33 | boolean status_code_bad( |
---|
| 34 | rtems_status_code status_code |
---|
| 35 | ); |
---|
| 36 | |
---|
| 37 | void test1(); |
---|
| 38 | void test2(); |
---|
| 39 | void test3(); |
---|
| 40 | |
---|
| 41 | /* configuration information */ |
---|
| 42 | |
---|
[df49c60] | 43 | #include <bsp.h> /* for device driver prototypes */ |
---|
| 44 | |
---|
| 45 | #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER |
---|
[f4a8ee1] | 46 | |
---|
| 47 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
| 48 | |
---|
[f59df6b2] | 49 | #define TASK_ALLOCATION_SIZE (5) |
---|
| 50 | #define CONFIGURE_MAXIMUM_TASKS rtems_resource_unlimited(TASK_ALLOCATION_SIZE) |
---|
| 51 | #define CONFIGURE_EXTRA_TASK_STACKS (62 * RTEMS_MINIMUM_STACK_SIZE) |
---|
| 52 | |
---|
| 53 | |
---|
[f4a8ee1] | 54 | #include <confdefs.h> |
---|
| 55 | |
---|
| 56 | /* |
---|
| 57 | * Keep track of the task id's created, use a large array. |
---|
| 58 | */ |
---|
| 59 | |
---|
| 60 | #define MAX_TASKS (1000) |
---|
| 61 | #define TASK_INDEX_OFFSET (1) |
---|
| 62 | |
---|
| 63 | extern rtems_id task_id[MAX_TASKS]; |
---|
| 64 | |
---|
| 65 | /* |
---|
| 66 | * Increment the task name. |
---|
| 67 | */ |
---|
| 68 | |
---|
| 69 | #define NEXT_TASK_NAME(c1, c2, c3, c4) \ |
---|
| 70 | if (c4 == '9') { \ |
---|
| 71 | if (c3 == '9') { \ |
---|
| 72 | if (c2 == 'z') { \ |
---|
| 73 | if (c1 == 'z') { \ |
---|
| 74 | printf("not enough task letters for names !!!\n"); \ |
---|
| 75 | exit( 1 ); \ |
---|
| 76 | } else \ |
---|
| 77 | c1++; \ |
---|
| 78 | c2 = 'a'; \ |
---|
| 79 | } else \ |
---|
| 80 | c2++; \ |
---|
| 81 | c3 = '0'; \ |
---|
| 82 | } else \ |
---|
| 83 | c3++; \ |
---|
| 84 | c4 = '0'; \ |
---|
| 85 | } \ |
---|
| 86 | else \ |
---|
| 87 | c4++ \ |
---|
| 88 | |
---|
| 89 | |
---|
| 90 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.