c06335b71b
Previously `shell_commands` was a "catch-all" module that included shell commands for each and every used module that has a shell companion. Instead, the new `shell_cmds` module is now used to provide shell commands as individually selectable submodules, e.g. `cmd_gnrc_icmpv6_echo` now provides the ICMPv6 echo command (a.k.a. ping). To still have a "catch all" module to pull in shell commands of modules already used, `shell_cmds_default` was introduced. `shell_commands` depends now on `shell_cmds_default` for backward compatibility, but has been deprecated. New apps should use `shell_cmds_default` instead. For a handful of shell commands individual selection was already possible. Those modules now depend on the corresponding `cmd_%` module and they have been deprecated. |
||
---|---|---|
.. | ||
app.config.test | ||
Kconfig | ||
main.c | ||
Makefile | ||
Makefile.ci | ||
README.md |
Expected result
This test enables you to test all available low-level I2C functions using the shell.
Consult the help
shell command for available actions.
Background
Test for the low-level I2C driver. Can be run manually or using python script interface.
Glossary
DEV - The I2C device number, this is usually 0.
Consult the board header file for more information.
ADDR - The address of the slave I2C device, this is usually the sensor.
Information on the slave address should be found in the sensor datasheet.
REG - The register of the slave device/sensor.
Not all sensors follow this access method.
A I2C_NOSTOP (0x04) may be needed.
LEN - The length to read or write.
FLAG - Flags set for the I2C, more information is available in driver/include/periph/i2c.h
note: Automated tests can be found in the RobotFW-tests repository