1# MCP9808 temperature sensor configuration options
2
3# Copyright (c) 2016 Intel Corporation
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig MCP9808
7	bool "MCP9808 temperature sensor"
8	default y
9	depends on DT_HAS_MICROCHIP_MCP9808_ENABLED
10	select I2C
11	help
12	  Enable driver for MCP9808 temperature sensor.
13
14if MCP9808
15
16choice
17	prompt "MCP9808 trigger mode"
18	default MCP9808_TRIGGER_NONE
19
20config MCP9808_TRIGGER_NONE
21	bool "No trigger"
22
23config MCP9808_TRIGGER_GLOBAL_THREAD
24	depends on GPIO
25	select MCP9808_TRIGGER
26	bool "Use global thread"
27
28config MCP9808_TRIGGER_OWN_THREAD
29	depends on GPIO
30	select MCP9808_TRIGGER
31	bool "Use own thread"
32
33endchoice
34
35config MCP9808_TRIGGER
36	bool
37
38config MCP9808_THREAD_STACK_SIZE
39	int "Sensor delayed work thread stack size"
40	depends on MCP9808_TRIGGER_OWN_THREAD
41	default 1024
42
43config MCP9808_THREAD_PRIORITY
44	int "MCP9808 thread priority"
45	depends on MCP9808_TRIGGER_OWN_THREAD
46	default 10
47
48endif # MCP9808
49