2016-05-24 17:09:22 +08:00
|
|
|
# Copyright (c) 2016 Intel Corporation
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-05-24 17:09:22 +08:00
|
|
|
|
|
|
|
menuconfig HTS221
|
2018-08-14 22:19:20 +08:00
|
|
|
bool "HTS221 temperature and humidity sensor"
|
2022-07-20 11:41:45 +08:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_ST_HTS221_ENABLED
|
2021-09-08 19:05:32 +08:00
|
|
|
depends on I2C || SPI
|
|
|
|
select HAS_STMEMSC
|
|
|
|
select USE_STDC_HTS221
|
2016-05-24 17:09:22 +08:00
|
|
|
help
|
2021-09-08 19:05:32 +08:00
|
|
|
Enable driver for HTS221 I2C/SPI-based temperature and humidity sensor.
|
2016-05-24 17:09:22 +08:00
|
|
|
|
2018-09-13 06:23:26 +08:00
|
|
|
if HTS221
|
|
|
|
|
2018-08-28 20:54:21 +08:00
|
|
|
choice HTS221_TRIGGER_MODE
|
2016-05-24 17:09:22 +08:00
|
|
|
prompt "Trigger mode"
|
2018-01-11 21:36:05 +08:00
|
|
|
default HTS221_TRIGGER_GLOBAL_THREAD
|
2016-05-24 17:09:22 +08:00
|
|
|
help
|
|
|
|
Specify the type of triggering to be used by the driver.
|
|
|
|
|
|
|
|
config HTS221_TRIGGER_NONE
|
2018-08-14 22:19:20 +08:00
|
|
|
bool "No trigger"
|
2016-05-24 17:09:22 +08:00
|
|
|
|
2016-11-10 23:05:53 +08:00
|
|
|
config HTS221_TRIGGER_GLOBAL_THREAD
|
2018-08-14 22:19:20 +08:00
|
|
|
bool "Use global thread"
|
2016-11-05 03:47:32 +08:00
|
|
|
depends on GPIO
|
2016-05-24 17:09:22 +08:00
|
|
|
select HTS221_TRIGGER
|
|
|
|
|
2016-11-10 23:05:53 +08:00
|
|
|
config HTS221_TRIGGER_OWN_THREAD
|
2018-08-14 22:19:20 +08:00
|
|
|
bool "Use own thread"
|
2016-05-24 17:09:22 +08:00
|
|
|
depends on GPIO
|
|
|
|
select HTS221_TRIGGER
|
|
|
|
|
2018-08-28 20:54:21 +08:00
|
|
|
endchoice # HTS221_TRIGGER_MODE
|
2016-05-24 17:09:22 +08:00
|
|
|
|
|
|
|
config HTS221_TRIGGER
|
|
|
|
bool
|
|
|
|
|
2016-11-10 23:05:53 +08:00
|
|
|
config HTS221_THREAD_PRIORITY
|
2018-08-14 22:19:20 +08:00
|
|
|
int "Thread priority"
|
2018-09-13 06:23:26 +08:00
|
|
|
depends on HTS221_TRIGGER_OWN_THREAD
|
2016-05-24 17:09:22 +08:00
|
|
|
default 10
|
|
|
|
help
|
2016-11-10 23:05:53 +08:00
|
|
|
Priority of thread used by the driver to handle interrupts.
|
2016-05-24 17:09:22 +08:00
|
|
|
|
2016-11-10 23:05:53 +08:00
|
|
|
config HTS221_THREAD_STACK_SIZE
|
2018-08-14 22:19:20 +08:00
|
|
|
int "Thread stack size"
|
2018-09-13 06:23:26 +08:00
|
|
|
depends on HTS221_TRIGGER_OWN_THREAD
|
2016-05-24 17:09:22 +08:00
|
|
|
default 1024
|
|
|
|
help
|
2016-11-10 23:05:53 +08:00
|
|
|
Stack size of thread used by the driver to handle interrupts.
|
2016-05-24 17:09:22 +08:00
|
|
|
|
|
|
|
config HTS221_ODR
|
2018-08-14 22:19:20 +08:00
|
|
|
string "Output data rate"
|
2016-05-24 17:09:22 +08:00
|
|
|
default "1"
|
|
|
|
help
|
|
|
|
Sensor output data rate expressed in samples per second.
|
|
|
|
Data rates supported by the chip are 1, 7 and 12.5.
|
2018-09-13 06:23:26 +08:00
|
|
|
|
|
|
|
endif # HTS221
|