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:
parent
a7014d01da
commit
b1e9a813fe
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue