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	select MPU9250_TRIGGER
29
30config MPU9250_TRIGGER_OWN_THREAD
31	bool "Use own thread"
32	depends on GPIO
33	select MPU9250_TRIGGER
34
35endchoice
36
37config MPU9250_TRIGGER
38	bool
39
40config MPU9250_THREAD_PRIORITY
41	int "Thread priority"
42	depends on MPU9250_TRIGGER_OWN_THREAD
43	default 10
44	help
45	  Priority of thread used by the driver to handle interrupts.
46
47config MPU9250_THREAD_STACK_SIZE
48	int "Thread stack size"
49	depends on MPU9250_TRIGGER_OWN_THREAD
50	default 1024
51	help
52	  Stack size of thread used by the driver to handle interrupts.
53
54config MPU9250_MAGN_EN
55	bool "Magnetometer enable"
56	default y
57	help
58	  Enable AK8963 builtin magnetometer.
59
60endif # MPU9250
61