Skip to content
Permalink
Browse files

shell: adc: adc shell for testing adcs

The adc shell makes it possible to configure ADC_0 and ADC_1 for testing
purposes. It includes helpful printouts if the number of arguments is
wrong.

Signed-off-by: Nicolai Glud <nigd@prevas.dk>
  • Loading branch information...
Nicolai Glud authored and MaureenHelm committed Dec 13, 2018
1 parent bb8dddf commit e5e45af4b023eb326ba0cc85bdaf10bda64807c9
Showing with 463 additions and 0 deletions.
  1. +1 −0 drivers/adc/CMakeLists.txt
  2. +5 −0 drivers/adc/Kconfig
  3. +457 −0 drivers/adc/adc_shell.c
@@ -2,6 +2,7 @@

zephyr_library()

zephyr_library_sources_ifdef(CONFIG_ADC_SHELL adc_shell.c)
zephyr_library_sources_ifdef(CONFIG_ADC_MCUX_ADC12 adc_mcux_adc12.c)
zephyr_library_sources_ifdef(CONFIG_ADC_MCUX_ADC16 adc_mcux_adc16.c)
zephyr_library_sources_ifdef(CONFIG_ADC_SAM_AFEC adc_sam_afec.c)
@@ -19,6 +19,11 @@ menuconfig ADC

if ADC

config ADC_SHELL
bool "Enable ADC Shell"
help
Enable ADC Shell for testing.

# By selecting or not this option particular ADC drivers indicate if it is
# required to explicitly specify analog inputs when configuring channels or
# just the channel identifier is sufficient.

0 comments on commit e5e45af

Please sign in to comment.
You can’t perform that action at this time.