RTEMS Logo

RTEMS 4.9.5 On-Line Library


Configuration and Initialization Configuration

PREV UP NEXT Bookshelf RTEMS Shell User's Guide

1.2: Configuration

  • Configuration and Initialization Customizing the Command Set
  • Configuration and Initialization Adding Custom Commands
  • The command set available to the application is user configurable. It is configured using a mechanism similar to the confdefs.h mechanism used to specify application configuration.

    In the simplest case, if the user wishes to configure a command set with all commands available that are neither filesystem management (e.g. mounting, formating, etc.) or network related, then the following is all that is required:

    #define CONFIGURE_SHELL_COMMANDS_INIT
    #define CONFIGURE_SHELL_COMMANDS_ALL
    
    #include <rtems/shellconfig.h>
    

    In a slightly more complex example, if the user wishes to include all networking commands as well as support for mounting MS-DOS and NFS filesystems, then the following is all that is required:

    #define CONFIGURE_SHELL_COMMANDS_INIT
    #define CONFIGURE_SHELL_COMMANDS_ALL
    #define CONFIGURE_SHELL_MOUNT_MSDOS
    #define CONFIGURE_SHELL_MOUNT_NFS
    
    #include <rtems/shellconfig.h>
    


    PREV UP NEXT Bookshelf RTEMS Shell User's Guide

    Copyright © 1988-2008 OAR Corporation