summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/shellconfig.h
diff options
context:
space:
mode:
authorChristian Mauderer <christian.mauderer@embedded-brains.de>2020-11-18 08:36:48 +0100
committerChristian Mauderer <christian.mauderer@embedded-brains.de>2020-12-14 10:48:57 +0100
commit1618e69f0e3f807dc76d14037e4325423557fb5d (patch)
tree2d2a296c0f31b2b54113a39d84b8c27a6f4dd6e3 /cpukit/include/rtems/shellconfig.h
parentbsp/rtl22xx: Fix non-ASCII character (diff)
downloadrtems-1618e69f0e3f807dc76d14037e4325423557fb5d.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.
Diffstat (limited to 'cpukit/include/rtems/shellconfig.h')
-rw-r--r--cpukit/include/rtems/shellconfig.h28
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
*/