1# SPDX-License-Identifier: Apache-2.0
2#
3# Copyright (c) 2023 Linumiz
4
5menuconfig MC3419
6	bool "MC3419 acclerometer driver"
7	default y
8	depends on DT_HAS_MEMSIC_MC3419_ENABLED
9	select I2C if $(dt_compat_on_bus,$(DT_COMPAT_MEMSIC_MC3419),i2c)
10	help
11	 Enable driver for MC3419 acclerometer.
12
13if MC3419
14
15config MC3419_TRIGGER
16	bool "Trigger mode"
17	depends on GPIO
18	depends on $(dt_compat_any_has_prop,$(DT_COMPAT_MEMSIC_MC3419),int-gpios)
19
20choice MC3419_TRIGGER_MODE
21	prompt "Trigger mode"
22	default MC3419_TRIGGER_NONE
23	help
24	  Specify the type of triggering to be used by the driver.
25
26config MC3419_TRIGGER_NONE
27	bool "No trigger"
28
29config MC3419_TRIGGER_OWN_THREAD
30	bool "Use own thread"
31	select MC3419_TRIGGER
32	help
33	 Enable trigger to run in own thread. By
34	 default it is global thread mode.
35
36endchoice # MC3419_TRIGGER_MODE
37
38if MC3419_TRIGGER
39
40config MC3419_THREAD_PRIORITY
41	int "Own thread priority"
42	depends on MC3419_TRIGGER_OWN_THREAD
43	default 10
44
45config MC3419_THREAD_STACK_SIZE
46	int "Own thread stask size"
47	depends on MC3419_TRIGGER_OWN_THREAD
48	default 1024
49
50endif # MC3419_TRIGGER
51
52endif # MC3419
53