1# AMG88XX infrared thermopile sensor configuration options
2
3# Copyright (c) 2017 Phytec Messtechnik GmbH
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig AMG88XX
7	bool "AMG88XX Infrared Thermopile Sensor"
8	default y
9	depends on DT_HAS_PANASONIC_AMG88XX_ENABLED
10	select I2C
11	help
12	  Enable driver for AMG88XX infrared thermopile sensor.
13
14if AMG88XX
15
16choice
17	prompt "Trigger mode"
18	default AMG88XX_TRIGGER_NONE
19	help
20	  Specify the type of triggering used by the driver.
21
22config AMG88XX_TRIGGER_NONE
23	bool "No trigger"
24
25config AMG88XX_TRIGGER_GLOBAL_THREAD
26	bool "Use global thread"
27	depends on GPIO
28	depends on $(dt_compat_any_has_prop,$(DT_COMPAT_PANASONIC_AMG88XX),int-gpios)
29	select AMG88XX_TRIGGER
30
31config AMG88XX_TRIGGER_OWN_THREAD
32	bool "Use own thread"
33	depends on GPIO
34	depends on $(dt_compat_any_has_prop,$(DT_COMPAT_PANASONIC_AMG88XX),int-gpios)
35	select AMG88XX_TRIGGER
36
37endchoice
38
39config AMG88XX_TRIGGER
40	bool
41
42config AMG88XX_THREAD_PRIORITY
43	int "Thread priority"
44	depends on AMG88XX_TRIGGER_OWN_THREAD
45	default 10
46	help
47	  Priority of thread used by the driver to handle interrupts.
48
49config AMG88XX_THREAD_STACK_SIZE
50	int "Thread stack size"
51	depends on AMG88XX_TRIGGER_OWN_THREAD
52	default 1024
53	help
54	  Stack size of thread used by the driver to handle interrupts.
55
56endif # AMG88XX
57