1 | /* |
---|
2 | * COPYRIGHT (c) 1989-2011. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.com/license/LICENSE. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | #include <rtems.h> |
---|
13 | #include <multiio_commands.h> |
---|
14 | #include <multiio.h> |
---|
15 | |
---|
16 | rtems_task Init( |
---|
17 | rtems_task_argument ignored |
---|
18 | ) |
---|
19 | { |
---|
20 | /* |
---|
21 | * Display a herald with some hints on usage |
---|
22 | */ |
---|
23 | printf( |
---|
24 | "\n" |
---|
25 | "\n" |
---|
26 | "*** Shell Configured with Multi IO Commands ***\n" |
---|
27 | "Multi IO Configuration: %s\n" |
---|
28 | "Type \"help multiio\" for more information\n" |
---|
29 | "\n", |
---|
30 | rtems_multiio_get_name() |
---|
31 | ); |
---|
32 | rtems_shell_init( |
---|
33 | "SHLL", /* task_name */ |
---|
34 | RTEMS_MINIMUM_STACK_SIZE * 4, /* task_stacksize */ |
---|
35 | 100, /* task_priority */ |
---|
36 | "/dev/console", /* devname */ |
---|
37 | false, /* forever */ |
---|
38 | true, /* wait */ |
---|
39 | NULL /* login */ |
---|
40 | ); |
---|
41 | } |
---|
42 | |
---|
43 | /* RTEMS configuration */ |
---|
44 | |
---|
45 | #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER |
---|
46 | #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER |
---|
47 | #ifdef RTEMS_BSP_HAS_IDE_DRIVER |
---|
48 | #define CONFIGURE_APPLICATION_NEEDS_IDE_DRIVER |
---|
49 | #endif |
---|
50 | #define CONFIGURE_APPLICATION_NEEDS_LIBBLOCK |
---|
51 | #define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM |
---|
52 | |
---|
53 | #define CONFIGURE_MICROSECONDS_PER_TICK 1000 |
---|
54 | |
---|
55 | #define CONFIGURE_MAXIMUM_TASKS 20 |
---|
56 | #define CONFIGURE_MAXIMUM_SEMAPHORES 20 |
---|
57 | #define CONFIGURE_MAXIMUM_BARRIERS 3 |
---|
58 | #define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 1 |
---|
59 | #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20 |
---|
60 | |
---|
61 | /* |
---|
62 | * discrete in messages are 12 bytes and there are 1024 of them |
---|
63 | */ |
---|
64 | #define CONFIGURE_MESSAGE_BUFFER_MEMORY \ |
---|
65 | CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE(1024, 12) |
---|
66 | |
---|
67 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
68 | #define CONFIGURE_EXTRA_TASK_STACKS (6 * RTEMS_MINIMUM_STACK_SIZE) |
---|
69 | #define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_FLOATING_POINT |
---|
70 | |
---|
71 | #define CONFIGURE_STACK_CHECKER_ENABLED |
---|
72 | #define CONFIGURE_MALLOC_STATISTICS |
---|
73 | |
---|
74 | #define CONFIGURE_INIT |
---|
75 | #include <rtems/confdefs.h> |
---|
76 | |
---|
77 | #define CONFIGURE_SHELL_USER_COMMANDS \ |
---|
78 | CONFIGURE_MULTIIO_COMMANDS |
---|
79 | #define CONFIGURE_SHELL_USER_ALIASES \ |
---|
80 | CONFIGURE_MULTIIO_ALIASES |
---|
81 | |
---|
82 | #define CONFIGURE_SHELL_COMMANDS_INIT |
---|
83 | #define CONFIGURE_SHELL_COMMANDS_ALL |
---|
84 | |
---|
85 | #include <rtems/shellconfig.h> |
---|
86 | |
---|