1# SM351LT Magnetoresistive Sensor configuration options
2
3# Copyright (c) 2020, Laird Connectivity
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig SM351LT
7	bool "SM351LT Magnetoresistive Sensor"
8	default y
9	depends on DT_HAS_HONEYWELL_SM351LT_ENABLED
10	depends on (GPIO)
11	help
12	  Enable GPIO-based driver for SM351LT magnetoresistive
13	  sensor.
14
15if SM351LT
16
17choice SM351LT_TRIGGER_MODE
18	prompt "Trigger mode"
19	help
20	  Specify the type of triggering to be used by the driver.
21
22config SM351LT_TRIGGER_NONE
23	bool "No trigger"
24
25config SM351LT_TRIGGER_GLOBAL_THREAD
26	bool "Use global thread"
27	select SM351LT_TRIGGER
28
29config SM351LT_TRIGGER_OWN_THREAD
30	bool "Use own thread"
31	select SM351LT_TRIGGER
32
33endchoice
34
35config SM351LT_TRIGGER
36	bool
37
38config SM351LT_THREAD_PRIORITY
39	int "Thread priority"
40	depends on SM351LT_TRIGGER_OWN_THREAD
41	default 10
42	help
43	  Priority of thread used by the driver to handle interrupts.
44
45config SM351LT_THREAD_STACK_SIZE
46	int "Thread stack size"
47	depends on SM351LT_TRIGGER_OWN_THREAD
48	default 512
49	help
50	  Stack size of thread used by the driver to handle interrupts.
51
52endif # SM351LT
53