zephyr/drivers/adc/Kconfig.tla2021
Caspar Friedrich 8a2a44f9e9 drivers: adc: tla2021: Raise default initialization priority
The TLA2021 driver depends on it's i2c controller and therefore needs
to be initialized later. ADC_INIT_PRIORITY by default equals
KERNEL_INIT_PRIORITY_DEVICE which should be used by independent devices.
Using this by default causing projects to fail where this driver is
enabled implicitly through board configuration and the priority is not
explicitly set.

Signed-off-by: Caspar Friedrich <c.s.w.friedrich@gmail.com>
2024-01-24 08:22:33 +01:00

35 lines
960 B
Plaintext

# Copyright (c) 2023 Caspar Friedrich <c.s.w.friedrich@gmail.com>
# SPDX-License-Identifier: Apache-2.0
config ADC_TLA2021
bool "Texas Instruments TLA2021 Low-Power ADC"
default y
depends on DT_HAS_TI_TLA2021_ENABLED
select I2C
help
TLA202x Cost-Optimized, Ultra-Small, 12-Bit, System-Monitoring ADCs
if ADC_TLA2021
config ADC_TLA2021_INIT_PRIORITY
int "Priority for the driver initialization"
default 80
help
Fine tune the priority for the driver initialization. Make sure it's
higher (-> lower priority) than I2C_INIT_PRIORITY.
config ADC_TLA2021_ACQUISITION_THREAD_PRIORITY
int "Priority for the data acquisition thread"
default 0
help
Execution priority for the internal data acquisition thread.
config ADC_TLA2021_ACQUISITION_THREAD_STACK_SIZE
int "Stack size for the data acquisition thread"
default 512
help
Stack size for the internal data acquisition thread. Requires room
for I2C operations.
endif # ADC_TLA2021