1# MPU9250 Nine-Axis Motion Tracking device configuration options
2
3# Copyright (c) 2021 Nordic Semiconductor ASA
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig MPU9250
7	bool "MPU9250 Nine-Axis Motion Tracking Device"
8	default y
9	depends on DT_HAS_INVENSENSE_MPU9250_ENABLED
10	select I2C
11	help
12	  Enable driver for MPU9250 I2C-based nine-axis motion tracking device.
13
14if MPU9250
15
16choice
17	prompt "Trigger mode"
18	default MPU9250_TRIGGER_GLOBAL_THREAD
19	help
20	  Specify the type of triggering to be used by the driver.
21
22config MPU9250_TRIGGER_NONE
23	bool "No trigger"
24
25config MPU9250_TRIGGER_GLOBAL_THREAD
26	bool "Use global thread"
27	depends on GPIO
28	depends on $(dt_compat_any_has_prop,$(DT_COMPAT_INVENSENSE_MPU9250),irq-gpios)
29	select MPU9250_TRIGGER
30
31config MPU9250_TRIGGER_OWN_THREAD
32	bool "Use own thread"
33	depends on GPIO
34	depends on $(dt_compat_any_has_prop,$(DT_COMPAT_INVENSENSE_MPU9250),irq-gpios)
35	select MPU9250_TRIGGER
36
37endchoice
38
39config MPU9250_TRIGGER
40	bool
41
42config MPU9250_THREAD_PRIORITY
43	int "Thread priority"
44	depends on MPU9250_TRIGGER_OWN_THREAD
45	default 10
46	help
47	  Priority of thread used by the driver to handle interrupts.
48
49config MPU9250_THREAD_STACK_SIZE
50	int "Thread stack size"
51	depends on MPU9250_TRIGGER_OWN_THREAD
52	default 1024
53	help
54	  Stack size of thread used by the driver to handle interrupts.
55
56config MPU9250_MAGN_EN
57	bool "Magnetometer enable"
58	default y
59	help
60	  Enable AK8963 builtin magnetometer.
61
62endif # MPU9250
63