zephyr/drivers/sensor/ens160/Kconfig
Gustavo Silva 3850f4ca64 drivers: sensor: add ScioSense ENS160 driver
Add driver for ScioSense ENS160 multi-gas sensor. The driver includes
support for I2C and SPI, attributes for setting temperature and
humidity compensation and data ready trigger.
Also add ScioSense to the list of vendor prefixes.

Signed-off-by: Gustavo Silva <gustavograzs@gmail.com>
2024-02-25 22:27:22 -05:00

54 lines
1.2 KiB
Plaintext

# Copyright (c) 2024 Gustavo Silva
# SPDX-License-Identifier: Apache-2.0
menuconfig ENS160
bool "ENS160 multi-gas sensor"
default y
depends on DT_HAS_SCIOSENSE_ENS160_ENABLED
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_SCIOSENSE_ENS160),i2c)
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_SCIOSENSE_ENS160),spi)
help
Enable driver for ENS160 Digital Metal Oxide Multi-Gas Sensor.
if ENS160
choice
prompt "Trigger Mode"
default ENS160_TRIGGER_NONE
help
Specify the type of triggering to be used by the driver.
config ENS160_TRIGGER_NONE
bool "No trigger"
config ENS160_TRIGGER_GLOBAL_THREAD
bool "Use global thread"
depends on GPIO
select ENS160_TRIGGER
config ENS160_TRIGGER_OWN_THREAD
bool "Use own thread"
depends on GPIO
select ENS160_TRIGGER
endchoice # Trigger Mode
config ENS160_TRIGGER
bool
config ENS160_THREAD_PRIORITY
int "Thread priority"
depends on ENS160_TRIGGER_OWN_THREAD && ENS160_TRIGGER
default 10
help
Priority of thread used by the driver to handle interrupts.
config ENS160_THREAD_STACK_SIZE
int "Thread stack size"
depends on ENS160_TRIGGER_OWN_THREAD && ENS160_TRIGGER
default 1024
help
Stack size of thread used by the driver to handle interrupts.
endif # ENS160