diff options
author | Christian Mauderer <christian.mauderer@embedded-brains.de> | 2020-11-18 08:36:48 +0100 |
---|---|---|
committer | Jan Sommer <jan.sommer@dlr.de> | 2021-03-31 10:43:48 +0200 |
commit | a274b6fdcb7b39b3d67aad33dba0360a47f20204 (patch) | |
tree | 31d12ec76f4ac1efe77883074908e49b710393d1 /cpukit/include/rtems/shellconfig.h | |
parent | bsps/xilinx_zynq: Add Xilinx AXI SPI driver to build (diff) | |
download | rtems-a274b6fdcb7b39b3d67aad33dba0360a47f20204.tar.bz2 |
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
Diffstat (limited to 'cpukit/include/rtems/shellconfig.h')
-rw-r--r-- | cpukit/include/rtems/shellconfig.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/cpukit/include/rtems/shellconfig.h b/cpukit/include/rtems/shellconfig.h index 3e87d472d6..c5fcf4a45e 100644 --- a/cpukit/include/rtems/shellconfig.h +++ b/cpukit/include/rtems/shellconfig.h @@ -78,6 +78,10 @@ extern rtems_shell_cmd_t rtems_shell_DF_Command; extern rtems_shell_cmd_t rtems_shell_MD5_Command; extern rtems_shell_cmd_t rtems_shell_RTC_Command; +extern rtems_shell_cmd_t rtems_shell_SPI_Command; +extern rtems_shell_cmd_t rtems_shell_I2CDETECT_Command; +extern rtems_shell_cmd_t rtems_shell_I2CGET_Command; +extern rtems_shell_cmd_t rtems_shell_I2CSET_Command; extern rtems_shell_cmd_t rtems_shell_SHUTDOWN_Command; extern rtems_shell_cmd_t rtems_shell_CPUINFO_Command; @@ -521,6 +525,30 @@ extern rtems_shell_alias_t * const rtems_shell_Initial_aliases[]; &rtems_shell_RTC_Command, #endif + #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) \ + && !defined(CONFIGURE_SHELL_NO_COMMAND_SPI)) \ + || defined(CONFIGURE_SHELL_COMMAND_SPI) + &rtems_shell_SPI_Command, + #endif + + #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) \ + && !defined(CONFIGURE_SHELL_NO_COMMAND_I2CDETECT)) \ + || defined(CONFIGURE_SHELL_COMMAND_I2CDETECT) + &rtems_shell_I2CDETECT_Command, + #endif + + #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) \ + && !defined(CONFIGURE_SHELL_NO_COMMAND_I2CGET)) \ + || defined(CONFIGURE_SHELL_COMMAND_I2CGET) + &rtems_shell_I2CGET_Command, + #endif + + #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) \ + && !defined(CONFIGURE_SHELL_NO_COMMAND_I2CSET)) \ + || defined(CONFIGURE_SHELL_COMMAND_I2CSET) + &rtems_shell_I2CSET_Command, + #endif + /* * System related commands */ |