Changeset a274b6f in rtems


Ignore:
Timestamp:
11/18/20 07:36:48 (3 years ago)
Author:
Christian Mauderer <christian.mauderer@…>
Branches:
5
Children:
bc806d4
Parents:
ec26605
git-author:
Christian Mauderer <christian.mauderer@…> (11/18/20 07:36:48)
git-committer:
Jan Sommer <jan.sommer@…> (03/31/21 08:43:48)
Message:

shell: Add i2c and spi commands

This adds some commands that are usefull for debugging simple serial
interfaces.

Even if they are a complete re-implementation, the i2c* commands use a
simmilar call like the Linux i2c tools.

Closes #4371

Location:
cpukit
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/Makefile.am

    rec26605 ra274b6f  
    14841484librtemscpu_a_SOURCES += libmisc/shell/fdisk.c
    14851485librtemscpu_a_SOURCES += libmisc/shell/main_rtc.c
     1486librtemscpu_a_SOURCES += libmisc/shell/main_spi.c
     1487librtemscpu_a_SOURCES += libmisc/shell/main_i2cdetect.c
     1488librtemscpu_a_SOURCES += libmisc/shell/main_i2cset.c
     1489librtemscpu_a_SOURCES += libmisc/shell/main_i2cget.c
    14861490librtemscpu_a_SOURCES += libmisc/shell/dd-args.c
    14871491librtemscpu_a_SOURCES += libmisc/shell/main_dd.c
  • cpukit/include/rtems/shellconfig.h

    rec26605 ra274b6f  
    7979
    8080extern rtems_shell_cmd_t rtems_shell_RTC_Command;
     81extern rtems_shell_cmd_t rtems_shell_SPI_Command;
     82extern rtems_shell_cmd_t rtems_shell_I2CDETECT_Command;
     83extern rtems_shell_cmd_t rtems_shell_I2CGET_Command;
     84extern rtems_shell_cmd_t rtems_shell_I2CSET_Command;
    8185
    8286extern rtems_shell_cmd_t rtems_shell_SHUTDOWN_Command;
     
    522526    #endif
    523527
     528    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) \
     529          && !defined(CONFIGURE_SHELL_NO_COMMAND_SPI)) \
     530        || defined(CONFIGURE_SHELL_COMMAND_SPI)
     531      &rtems_shell_SPI_Command,
     532    #endif
     533
     534    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) \
     535          && !defined(CONFIGURE_SHELL_NO_COMMAND_I2CDETECT)) \
     536        || defined(CONFIGURE_SHELL_COMMAND_I2CDETECT)
     537      &rtems_shell_I2CDETECT_Command,
     538    #endif
     539
     540    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) \
     541          && !defined(CONFIGURE_SHELL_NO_COMMAND_I2CGET)) \
     542        || defined(CONFIGURE_SHELL_COMMAND_I2CGET)
     543      &rtems_shell_I2CGET_Command,
     544    #endif
     545
     546    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) \
     547          && !defined(CONFIGURE_SHELL_NO_COMMAND_I2CSET)) \
     548        || defined(CONFIGURE_SHELL_COMMAND_I2CSET)
     549      &rtems_shell_I2CSET_Command,
     550    #endif
     551
    524552    /*
    525553     *  System related commands
Note: See TracChangeset for help on using the changeset viewer.