2019-11-01 20:45:29 +08:00
|
|
|
# MCP9808 temperature sensor configuration options
|
2016-03-17 20:40:23 +08:00
|
|
|
|
|
|
|
# Copyright (c) 2016 Intel Corporation
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-03-17 20:40:23 +08:00
|
|
|
|
|
|
|
menuconfig MCP9808
|
|
|
|
bool "MCP9808 temperature sensor"
|
2017-09-22 02:28:16 +08:00
|
|
|
depends on I2C
|
2016-03-17 20:40:23 +08:00
|
|
|
help
|
2019-11-01 17:24:07 +08:00
|
|
|
Enable driver for MCP9808 temperature sensor.
|
2016-03-17 20:40:23 +08:00
|
|
|
|
2018-09-13 06:23:26 +08:00
|
|
|
if MCP9808
|
|
|
|
|
2016-03-17 20:40:23 +08:00
|
|
|
choice
|
|
|
|
prompt "MCP9808 trigger mode"
|
|
|
|
default MCP9808_TRIGGER_NONE
|
|
|
|
|
|
|
|
config MCP9808_TRIGGER_NONE
|
|
|
|
bool "No trigger"
|
|
|
|
|
2016-11-10 23:05:53 +08:00
|
|
|
config MCP9808_TRIGGER_GLOBAL_THREAD
|
2016-11-05 03:47:32 +08:00
|
|
|
depends on GPIO
|
2016-03-17 20:40:23 +08:00
|
|
|
select MCP9808_TRIGGER
|
2016-11-10 23:05:53 +08:00
|
|
|
bool "Use global thread"
|
2016-03-17 20:40:23 +08:00
|
|
|
|
2016-11-10 23:05:53 +08:00
|
|
|
config MCP9808_TRIGGER_OWN_THREAD
|
2016-03-17 20:40:23 +08:00
|
|
|
depends on GPIO
|
|
|
|
select MCP9808_TRIGGER
|
2016-11-10 23:05:53 +08:00
|
|
|
bool "Use own thread"
|
2016-03-17 20:40:23 +08:00
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config MCP9808_TRIGGER
|
|
|
|
bool
|
|
|
|
|
2016-11-10 23:05:53 +08:00
|
|
|
config MCP9808_THREAD_STACK_SIZE
|
|
|
|
int "Sensor delayed work thread stack size"
|
2018-09-13 06:23:26 +08:00
|
|
|
depends on MCP9808_TRIGGER_OWN_THREAD
|
2016-03-17 20:40:23 +08:00
|
|
|
default 1024
|
|
|
|
|
2016-11-10 23:05:53 +08:00
|
|
|
config MCP9808_THREAD_PRIORITY
|
|
|
|
int "MCP9808 thread priority"
|
2018-09-13 06:23:26 +08:00
|
|
|
depends on MCP9808_TRIGGER_OWN_THREAD
|
2016-03-17 20:40:23 +08:00
|
|
|
default 10
|
2018-09-13 06:23:26 +08:00
|
|
|
|
|
|
|
endif # MCP9808
|