Changeset dec8f84 in rtems


Ignore:
Timestamp:
Dec 3, 2007, 2:22:35 AM (12 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, master
Children:
1b1aca1
Parents:
7ace382
Message:

2007-12-03 Chris Johns <chrisj@…>

  • libmisc/shell/shell.h: Added comments for the parameters to the shell_init function.
  • libmisc/shell/shell.c: Only set cflags if tcflags is non-zero. This means the shell can use the current cflags settings and the application does not need to know the baudrate etc.
  • libmisc/capture/capture.h: Fix the comment.
Location:
cpukit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r7ace382 rdec8f84  
     12007-12-03      Chris Johns <chrisj@rtems.org>
     2
     3        * libmisc/shell/shell.h: Added comments for the parameters to the
     4        shell_init function.
     5        * libmisc/shell/shell.c: Only set cflags if tcflags is
     6        non-zero. This means the shell can use the current cflags settings
     7        and the application does not need to know the baudrate etc.
     8        * libmisc/capture/capture.h: Fix the comment.
     9
    1102007-11-30      Joel Sherrill <joel.sherrill@OARcorp.com>
    211
  • cpukit/libmisc/capture/capture.h

    r7ace382 rdec8f84  
    122122                                     
    123123/**
    124  * rtems_capture_control_t
     124 * rtems_capture_task_t
    125125 *
    126126 *  DESCRIPTION:
  • cpukit/libmisc/shell/shell.c

    r7ace382 rdec8f84  
    600600   term.c_oflag |= (OPOST|ONLCR); /* But with cr+nl on output */
    601601   term.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
    602    term.c_cflag  = CLOCAL | CREAD |(shell_env->tcflag);
     602   if (shell_env->tcflag)
     603     term.c_cflag = shell_env->tcflag;
     604   term.c_cflag  |= CLOCAL | CREAD;
    603605   term.c_cc[VMIN]  = 1;
    604606   term.c_cc[VTIME] = 0;
  • cpukit/libmisc/shell/shell.h

    r7ace382 rdec8f84  
    7070void write_file(char *name,char * content);
    7171
     72/**
     73 * Initialise the shell creating tasks to login and run the shell
     74 * sessions.
     75 *
     76 * @param task_name Name of the shell task.
     77 * @param task_stacksize The size of the stack. If 0 the default size is used.
     78 * @param task_priority The priority the shell runs at.
     79 * @param tcflag The termios c_cflag value. If 0 the default is used, if
     80 *               not 0 the value is ORed with CLOCAL and CREAD.
     81 * @param forever Repeat logins.
     82 *
     83 * @todo CCJ I am not sure this termios flag setting is a good idea. The shell
     84 *           needs to adjust the termios for its use but it should assume the
     85 *           settings are set by the user for things like baudrate etc.
     86 */
    7287rtems_status_code shell_init(
    7388  char                *task_name,
Note: See TracChangeset for help on using the changeset viewer.