2008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>

* shell/confinit.t: New argument sequence for rtems_shell_init().
This commit is contained in:
Joel Sherrill
2008-07-16 17:13:35 +00:00
parent 72cb077f39
commit c2a5939f1b
2 changed files with 9 additions and 4 deletions

View File

@@ -195,17 +195,18 @@ void start_shell(void)
RTEMS_MINIMUM_STACK_SIZE * 4, /* task stack size */
100, /* task priority */
"/dev/console", /* device name */
0, /* initial termios cflag value */
0 /* run forever */
0, /* run forever */
1 /* wait for shell to terminate */
);
rtems_task_suspend(RTEMS_SELF);
@}
@end smallexample
In the above example, the call to @code{rtems_shell_init}
spawns a task to run the RTEMS Shell attached to @code{/dev/console}
and executing at priority 100. The caller suspends itself and
lets the shell take over the console device.
lets the shell take over the console device. When the shell
is exited by the user, then control returns to the caller.
@c
@c
@c