1# LM77 temperature sensor configuration
2#
3# Copyright (c) 2021 Vestas Wind Systems A/S
4# SPDX-License-Identifier: Apache-2.0
5
6config LM77
7	bool "LM77 Temperature Sensor"
8	default y
9	depends on DT_HAS_LM77_ENABLED
10	default $(dt_compat_enabled,lm77)
11	select I2C
12	help
13	  Enable driver for the LM77 digital temperature sensor with 2-wire
14	  interface.
15
16if LM77
17
18config LM77_TRIGGER
19	bool "Trigger support"
20	depends on GPIO
21	depends on $(dt_compat_any_has_prop,$(DT_COMPAT_LM77),int-gpios)
22	default y
23	help
24	  Enable trigger support for the LM77 digital temperature sensor.
25
26	  Trigger events are based on the LM77 INT signal (configured for event
27	  interrupt mode). After a trigger event the LM77 temperature must be
28	  read in order to reset and rearm the trigger.
29
30if LM77_TRIGGER
31
32config LM77_TRIGGER_THREAD_STACK_SIZE
33	int "Stack size for the trigger workqueue thread"
34	default 512
35	help
36	  Size of the stack used for the internal trigger workqueue thread.
37
38config LM77_TRIGGER_THREAD_PRIO
39	int "Priority for the trigger workqueue thread"
40	default 0
41	help
42	  Priority level for the internal trigger workqueue thread.
43
44endif # LM77_TRIGGER
45endif # LM77
46