subsys/shell: Introduce the Sensor Shell Module

Adds a Shell Module for retrieving Sensor data. The following commands
were added:

sensor - Device commands
Options:
  -h, --help  :Show command help.
Subcommands:
  get            :<device_name> [chanel_idx]
  list           :List configured sensors
  list_channels  :<device_name>

Signed-off-by: Diego Sueiro <diego.sueiro@gmail.com>
This commit is contained in:
Diego Sueiro 2018-12-07 09:31:34 +00:00 committed by Anas Nashif
commit 93e1560faa
3 changed files with 202 additions and 0 deletions

View file

@ -20,6 +20,11 @@ config SENSOR_INIT_PRIORITY
help
Sensor initialization priority.
config SENSOR_SHELL
bool "Enable sensor shell"
help
This shell provides access to basic sensor data.
comment "Device Drivers"
source "drivers/sensor/adt7420/Kconfig"