1 | /* Init |
---|
2 | * |
---|
3 | * This routine is the initialization task for this test program. |
---|
4 | * It is a user initialization task and has the responsibility for creating |
---|
5 | * and starting the tasks that make up the test. If the time of day |
---|
6 | * clock is required for the test, it should also be set to a known |
---|
7 | * value by this function. |
---|
8 | * |
---|
9 | * Input parameters: |
---|
10 | * argument - task argument |
---|
11 | * |
---|
12 | * Output parameters: NONE |
---|
13 | * |
---|
14 | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
15 | * On-Line Applications Research Corporation (OAR). |
---|
16 | * All rights assigned to U.S. Government, 1994. |
---|
17 | * |
---|
18 | * This material may be reproduced by or for the U.S. Government pursuant |
---|
19 | * to the copyright license under the clause at DFARS 252.227-7013. This |
---|
20 | * notice must appear in all copies of this file and its derivatives. |
---|
21 | * |
---|
22 | * $Id$ |
---|
23 | */ |
---|
24 | |
---|
25 | #define TEST_INIT |
---|
26 | #include "system.h" |
---|
27 | |
---|
28 | rtems_task Test_task(); |
---|
29 | void size_rtems( int mode ); |
---|
30 | |
---|
31 | rtems_task Init( |
---|
32 | rtems_task_argument argument |
---|
33 | ) |
---|
34 | { |
---|
35 | int choice; |
---|
36 | |
---|
37 | setvbuf(stdout, 0, _IONBF, 0); |
---|
38 | |
---|
39 | puts( "\n*** RTEMS SIZE PROGRAM ***" ); |
---|
40 | size_rtems( 1 ); |
---|
41 | puts( "*** END OF RTEMS SIZE PROGRAM ***" ); |
---|
42 | exit( 0 ); |
---|
43 | #if 0 |
---|
44 | do { |
---|
45 | printf( "\n\nPlease select program mode:\n" ); |
---|
46 | printf( " 1) Print Formulas\n" ); |
---|
47 | printf( " 2) Determine Workspace Size\n" ); |
---|
48 | printf( " 3) Exit\n" ); |
---|
49 | printf( "Enter number of choice (1,2,3) : " ); |
---|
50 | |
---|
51 | choice = getint(); |
---|
52 | switch( choice ) { |
---|
53 | case 1: size_rtems( 1 ); break; |
---|
54 | case 2: size_rtems( 0 ); break; |
---|
55 | case 3: exit( 0 ); |
---|
56 | default: continue; |
---|
57 | } |
---|
58 | } while ( FOREVER ); |
---|
59 | #endif |
---|
60 | } |
---|