zephyr/drivers/adc/Kconfig.adc_emul
Kumar Gala d734f273ba drivers: adc: Update drivers to use devicetree Kconfig symbol
Update adc drivers to use DT_HAS_<compat>_ENABLED Kconfig symbol
to expose the driver and enable it by default based on devicetree.

We remove 'depend on' Kconfig for symbols that would be implied by
the devicetree node existing.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-22 07:51:24 -05:00

30 lines
850 B
Plaintext

# Copyright 2021 Google LLC
# SPDX-License-Identifier: Apache-2.0
config ADC_EMUL
bool "ADC emulator"
default y
depends on DT_HAS_ZEPHYR_ADC_EMUL_ENABLED
help
Enable the ADC emulator driver. This is a fake driver in that it
does not talk to real hardware. It pretends to be actual ADC. It
is used for testing higher-level API for ADC devices.
if ADC_EMUL
config ADC_EMUL_ACQUISITION_THREAD_STACK_SIZE
int "Stack size for the ADC data acquisition thread"
default 512
help
Size of the stack used for the internal data acquisition
thread. Increasing size may be required when value function for
emulated ADC require a lot of memory.
config ADC_EMUL_ACQUISITION_THREAD_PRIO
int "Priority for the ADC data acquisition thread"
default 0
help
Priority level for the internal ADC data acquisition thread.
endif # ADC_EMUL