zephyr/drivers/adc/Kconfig.ads114s0x
Benedikt Schmidt 0d33ecd56a drivers: adc: configurable wait for completion timeout
Depending on the ADC implementation it might happen that
the driver is waiting on an external interrupt. If this interrupt
gets lost, for instance due to a race condition with an external
port expander, the system will get stuck.
Making this configurable allows the user to recover from such
an error.

Signed-off-by: Benedikt Schmidt <benedikt.schmidt@embedded-solutions.at>
2023-07-19 15:22:33 +00:00

44 lines
1.1 KiB
Plaintext

# Copyright (c) 2023 SILA Embedded Solutions GmbH
#
# SPDX-License-Identifier: Apache-2.0
menuconfig ADC_ADS114S0X
bool "Texas instruments ADS114S0x"
default y
depends on DT_HAS_TI_ADS114S08_ENABLED
select SPI
select ADC_CONFIGURABLE_INPUTS
select ADC_CONFIGURABLE_EXCITATION_CURRENT_SOURCE_PIN
help
Enable the driver implementation for the ADS114S0X family
config ADC_ADS114S0X_ASYNC_THREAD_INIT_PRIO
int "ADC ADS114S0x async thread priority"
default 0
depends on ADC_ADS114S0X
config ADC_ADS114S0X_ACQUISITION_THREAD_STACK_SIZE
int "Stack size for the ADC data acquisition thread"
default 400
depends on ADC_ADS114S0X
help
Size of the stack used for the internal data acquisition
thread.
config ADC_ADS114S0X_GPIO
bool "GPIO support"
default n
depends on GPIO && ADC_ADS114S0X
help
Enable GPIO child device support in the ADS114S0x ADC driver.
The GPIO functionality is handled by the ADS114S0x GPIO
driver.
config ADC_ADS114S0X_WAIT_FOR_COMPLETION_TIMEOUT_MS
int "Timeout for wait for completion of a read in ms"
default 1000
depends on ADC_ADS114S0X
help
This is the wait time in ms until a read is completed.