drivers: adc: adc-shell: Add support for ADS111x ADCs to adc-shell.c

The adc-shell uses a hardcoded list of defines to check whether it should
throw a compile-time error. The ADS1119 and ADS1112 driver both support
the APIs needed by the shell, so this commit enables support for them in
the hardcoded support list.

Signed-off-by: Jordan Montgomery <jordan.montgomery@getcruise.com>
This commit is contained in:
Jordan Montgomery 2023-04-12 08:56:26 -07:00 committed by Anas Nashif
commit b1e9a813fe

View file

@ -39,6 +39,10 @@
#define DT_DRV_COMPAT st_stm32_adc
#elif DT_HAS_COMPAT_STATUS_OKAY(nuvoton_npcx_adc)
#define DT_DRV_COMPAT nuvoton_npcx_adc
#elif DT_HAS_COMPAT_STATUS_OKAY(ti_ads1112)
#define DT_DRV_COMPAT ti_ads1112
#elif DT_HAS_COMPAT_STATUS_OKAY(ti_ads1119)
#define DT_DRV_COMPAT ti_ads1119
#elif DT_HAS_COMPAT_STATUS_OKAY(ti_cc32xx_adc)
#define DT_DRV_COMPAT ti_cc32xx_adc
#elif DT_HAS_COMPAT_STATUS_OKAY(raspberrypi_pico_adc)