2019-11-01 20:45:29 +08:00
|
|
|
# MPU6050 Six-Axis Motion Tracking device configuration options
|
2016-05-31 15:53:22 +08:00
|
|
|
|
|
|
|
# Copyright (c) 2016 Intel Corporation
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-05-31 15:53:22 +08:00
|
|
|
|
|
|
|
menuconfig MPU6050
|
2018-08-14 22:19:20 +08:00
|
|
|
bool "MPU6050 Six-Axis Motion Tracking Device"
|
2017-09-22 02:28:16 +08:00
|
|
|
depends on I2C
|
2016-05-31 15:53:22 +08:00
|
|
|
help
|
|
|
|
Enable driver for MPU6050 I2C-based six-axis motion tracking device.
|
|
|
|
|
2018-09-13 06:23:26 +08:00
|
|
|
if MPU6050
|
|
|
|
|
2016-05-31 15:53:22 +08:00
|
|
|
choice
|
|
|
|
prompt "Trigger mode"
|
2016-11-10 23:05:53 +08:00
|
|
|
default MPU6050_TRIGGER_GLOBAL_THREAD
|
2016-05-31 15:53:22 +08:00
|
|
|
help
|
|
|
|
Specify the type of triggering to be used by the driver.
|
|
|
|
|
|
|
|
config MPU6050_TRIGGER_NONE
|
2018-08-14 22:19:20 +08:00
|
|
|
bool "No trigger"
|
2016-05-31 15:53:22 +08:00
|
|
|
|
2016-11-10 23:05:53 +08:00
|
|
|
config MPU6050_TRIGGER_GLOBAL_THREAD
|
2018-08-14 22:19:20 +08:00
|
|
|
bool "Use global thread"
|
2016-11-05 03:47:32 +08:00
|
|
|
depends on GPIO
|
2016-05-31 15:53:22 +08:00
|
|
|
select MPU6050_TRIGGER
|
|
|
|
|
2016-11-10 23:05:53 +08:00
|
|
|
config MPU6050_TRIGGER_OWN_THREAD
|
2018-08-14 22:19:20 +08:00
|
|
|
bool "Use own thread"
|
2016-05-31 15:53:22 +08:00
|
|
|
depends on GPIO
|
|
|
|
select MPU6050_TRIGGER
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config MPU6050_TRIGGER
|
|
|
|
bool
|
|
|
|
|
2016-11-10 23:05:53 +08:00
|
|
|
config MPU6050_THREAD_PRIORITY
|
2018-08-14 22:19:20 +08:00
|
|
|
int "Thread priority"
|
2018-09-13 06:23:26 +08:00
|
|
|
depends on MPU6050_TRIGGER_OWN_THREAD
|
2016-05-31 15:53:22 +08:00
|
|
|
default 10
|
|
|
|
help
|
2016-11-10 23:05:53 +08:00
|
|
|
Priority of thread used by the driver to handle interrupts.
|
2016-05-31 15:53:22 +08:00
|
|
|
|
2016-11-10 23:05:53 +08:00
|
|
|
config MPU6050_THREAD_STACK_SIZE
|
2018-08-14 22:19:20 +08:00
|
|
|
int "Thread stack size"
|
2018-09-13 06:23:26 +08:00
|
|
|
depends on MPU6050_TRIGGER_OWN_THREAD
|
2016-05-31 15:53:22 +08:00
|
|
|
default 1024
|
|
|
|
help
|
2016-11-10 23:05:53 +08:00
|
|
|
Stack size of thread used by the driver to handle interrupts.
|
2016-05-31 15:53:22 +08:00
|
|
|
|
|
|
|
config MPU6050_ACCEL_FS
|
2018-08-14 22:19:20 +08:00
|
|
|
int "Accelerometer full-scale range"
|
2016-05-31 15:53:22 +08:00
|
|
|
default 2
|
|
|
|
help
|
|
|
|
Magnetometer full-scale range.
|
|
|
|
An X value for the config represents a range of +/- X g. Valid
|
|
|
|
values are 2, 4, 8 and 16.
|
|
|
|
|
|
|
|
config MPU6050_GYRO_FS
|
2018-08-14 22:19:20 +08:00
|
|
|
int "Gyroscope full-scale range"
|
2016-05-31 15:53:22 +08:00
|
|
|
default 250
|
|
|
|
help
|
|
|
|
Gyroscope full-scale range.
|
|
|
|
An X value for the config represents a range of +/- X degrees/second.
|
|
|
|
Valid values are 250, 500, 1000, 2000.
|
2018-09-13 06:23:26 +08:00
|
|
|
|
|
|
|
endif # MPU6050
|