From c2a5939f1b4ac900a18dd8c2e6f1f8f805065911 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 16 Jul 2008 17:13:35 +0000 Subject: 2008-07-16 Joel Sherrill * shell/confinit.t: New argument sequence for rtems_shell_init(). --- doc/ChangeLog | 4 ++++ doc/shell/confinit.t | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/ChangeLog b/doc/ChangeLog index 304f86a88a..8281da8dd3 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,7 @@ +2008-07-16 Joel Sherrill + + * shell/confinit.t: New argument sequence for rtems_shell_init(). + 2008-07-15 Joel Sherrill * user/barrier.t, user/clock.t, user/dpmem.t, user/msg.t, user/part.t, diff --git a/doc/shell/confinit.t b/doc/shell/confinit.t index bb94b608a3..4de3987323 100644 --- a/doc/shell/confinit.t +++ b/doc/shell/confinit.t @@ -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 -- cgit v1.2.3