zephyr/drivers/sensor/mcp9808/Kconfig
Kumar Gala 30ea840eb1 sensor: mcp9808: Convert to DTS
Convert mcp9808 sensor driver and sample app to utilize device tree.

Introduce a dts board overlay on the frdm_k64f board to ensure we at
least have a single platform in which the sample gets built.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-11-08 07:44:54 -06:00

47 lines
892 B
Plaintext

# MCP9808 temperature sensor configuration options
# Copyright (c) 2016 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
menuconfig MCP9808
bool "MCP9808 temperature sensor"
depends on I2C
help
Enable driver for MCP9808 temperature sensor.
if MCP9808
choice
prompt "MCP9808 trigger mode"
default MCP9808_TRIGGER_NONE
config MCP9808_TRIGGER_NONE
bool "No trigger"
config MCP9808_TRIGGER_GLOBAL_THREAD
depends on GPIO
select MCP9808_TRIGGER
bool "Use global thread"
config MCP9808_TRIGGER_OWN_THREAD
depends on GPIO
select MCP9808_TRIGGER
bool "Use own thread"
endchoice
config MCP9808_TRIGGER
bool
config MCP9808_THREAD_STACK_SIZE
int "Sensor delayed work thread stack size"
depends on MCP9808_TRIGGER_OWN_THREAD
default 1024
config MCP9808_THREAD_PRIORITY
int "MCP9808 thread priority"
depends on MCP9808_TRIGGER_OWN_THREAD
default 10
endif # MCP9808