1# MPU6050 Six-Axis Motion Tracking device configuration options 2 3# Copyright (c) 2016 Intel Corporation 4# SPDX-License-Identifier: Apache-2.0 5 6menuconfig MPU6050 7 bool "MPU6050 Six-Axis Motion Tracking Device" 8 default y 9 depends on DT_HAS_INVENSENSE_MPU6050_ENABLED 10 select I2C 11 help 12 Enable driver for MPU6050 I2C-based six-axis motion tracking device. 13 14if MPU6050 15 16choice 17 prompt "Trigger mode" 18 default MPU6050_TRIGGER_GLOBAL_THREAD 19 help 20 Specify the type of triggering to be used by the driver. 21 22config MPU6050_TRIGGER_NONE 23 bool "No trigger" 24 25config MPU6050_TRIGGER_GLOBAL_THREAD 26 bool "Use global thread" 27 depends on GPIO 28 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_INVENSENSE_MPU6050),int-gpios) 29 select MPU6050_TRIGGER 30 31config MPU6050_TRIGGER_OWN_THREAD 32 bool "Use own thread" 33 depends on GPIO 34 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_INVENSENSE_MPU6050),int-gpios) 35 select MPU6050_TRIGGER 36 37endchoice 38 39config MPU6050_TRIGGER 40 bool 41 42config MPU6050_THREAD_PRIORITY 43 int "Thread priority" 44 depends on MPU6050_TRIGGER_OWN_THREAD 45 default 10 46 help 47 Priority of thread used by the driver to handle interrupts. 48 49config MPU6050_THREAD_STACK_SIZE 50 int "Thread stack size" 51 depends on MPU6050_TRIGGER_OWN_THREAD 52 default 1024 53 help 54 Stack size of thread used by the driver to handle interrupts. 55 56config MPU6050_ACCEL_FS 57 int "Accelerometer full-scale range" 58 default 2 59 help 60 Magnetometer full-scale range. 61 An X value for the config represents a range of +/- X g. Valid 62 values are 2, 4, 8 and 16. 63 64config MPU6050_GYRO_FS 65 int "Gyroscope full-scale range" 66 default 250 67 help 68 Gyroscope full-scale range. 69 An X value for the config represents a range of +/- X degrees/second. 70 Valid values are 250, 500, 1000, 2000. 71 72endif # MPU6050 73