-
Notifications
You must be signed in to change notification settings - Fork 67
/
Kconfig
178 lines (147 loc) · 4.5 KB
/
Kconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
menu "MPU driver"
#
# Options defined in this menu
#
# CONFIG_MPU_CHIP_MODEL
# CONFIG_MPU6000
# CONFIG_MPU6050
# CONFIG_MPU6500
# CONFIG_MPU6555
# CONFIG_MPU9150
# CONFIG_MPU9250
# CONFIG_MPU9255
# CONFIG_MPU_AK8963
# CONFIG_MPU_AK8975
# CONFIG_MPU_AK89xx
# CONFIG_MPU_COMM_PROTOCOL
# CONFIG MPU_I2C
# CONFIG MPU_SPI
# CONFIG_MPU_ENABLE_DMP
# CONFIG_MPU_FIFO_CORRUPTION_CHECK
# CONFIG_MPU_LOG_LEVEL
# CONFIG_MPU_LOG_LEVEL_DEFAULT
# CONFIG_MPU_LOG_LEVEL_NONE
# CONFIG_MPU_LOG_LEVEL_ERROR
# CONFIG_MPU_LOG_LEVEL_WARN
# CONFIG_MPU_LOG_LEVEL_INFO
# CONFIG_MPU_LOG_LEVEL_DEBUG
# CONFIG_MPU_LOG_LEVEL_VERBOSE
#
choice MPU_CHIP_MODEL
prompt "MPU chip model"
default MPU6050
help
Select MPU chip model which will be used with MPU library.
config MPU6000
bool "MPU6000"
config MPU6050
bool "MPU6050"
config MPU6500
bool "MPU6500"
config MPU6555
bool "MPU6555"
config MPU9150
bool "MPU9150"
config MPU9250
bool "MPU9250"
config MPU9255
bool "MPU9255"
endchoice
config MPU_CHIP_MODEL
string
default "MPU6000" if MPU6000
default "MPU6050" if MPU6050
default "MPU6500" if MPU6500
default "MPU6555" if MPU6555
default "MPU9150" if MPU9150
default "MPU9250" if MPU9250
default "MPU9255" if MPU9255
config MPU_AK8963
bool
default "y"
depends on MPU9250 || MPU9255
config MPU_AK8975
bool
default "y"
depends on MPU9150
config MPU_AK89xx
bool
default "y"
depends on MPU_AK8963 || MPU_AK8975
choice MPU_COMM_PROTOCOL
prompt "Communication Protocol"
default MPU_I2C
help
Select MPU communication protocol. Available options are I2C and SPI, according to the MPU model.
config MPU_I2C
bool "I2C"
help
Inter-Integrated Circuit (I2C)
config MPU_SPI
bool "SPI"
depends on MPU6000 || MPU6500 || MPU6555 || MPU9250 || MPU9255
help
Serial Peripheral Interface bus (SPI)
endchoice
config MPU_COMM_PROTOCOL
string
default "I2C" if MPU_I2C
default "SPI" if MPU_SPI
choice MPU_LOG_LEVEL
prompt "Log verbosity"
default MPU_LOG_LEVEL_DEFAULT
help
Specify how much output to see in logs from MPU library.
Options depend on default log level, change on Log output.
config MPU_LOG_LEVEL_DEFAULT
bool "Default"
help
Log level Default is whatever is set in default esp32 log output verbosity.
config MPU_LOG_LEVEL_NONE
bool "No output"
config MPU_LOG_LEVEL_ERROR
bool "Error"
depends on LOG_DEFAULT_LEVEL_ERROR || LOG_DEFAULT_LEVEL_WARN || LOG_DEFAULT_LEVEL_INFO || LOG_DEFAULT_LEVEL_DEBUG || LOG_DEFAULT_LEVEL_VERBOSE
config MPU_LOG_LEVEL_WARN
bool "Warning"
depends on LOG_DEFAULT_LEVEL_WARN || LOG_DEFAULT_LEVEL_INFO || LOG_DEFAULT_LEVEL_DEBUG || LOG_DEFAULT_LEVEL_VERBOSE
config MPU_LOG_LEVEL_INFO
bool "Info"
depends on LOG_DEFAULT_LEVEL_INFO || LOG_DEFAULT_LEVEL_DEBUG || LOG_DEFAULT_LEVEL_VERBOSE
config MPU_LOG_LEVEL_DEBUG
bool "Debug"
depends on LOG_DEFAULT_LEVEL_DEBUG || LOG_DEFAULT_LEVEL_VERBOSE
config MPU_LOG_LEVEL_VERBOSE
bool "Verbose"
depends on LOG_DEFAULT_LEVEL_VERBOSE
endchoice
config MPU_LOG_LEVEL
int
default 0 if MPU_LOG_LEVEL_NONE || (MPU_LOG_LEVEL_DEFAULT && LOG_DEFAULT_LEVEL_NONE)
default 1 if MPU_LOG_LEVEL_ERROR || (MPU_LOG_LEVEL_DEFAULT && LOG_DEFAULT_LEVEL_ERROR)
default 2 if MPU_LOG_LEVEL_WARN || (MPU_LOG_LEVEL_DEFAULT && LOG_DEFAULT_LEVEL_WARN)
default 3 if MPU_LOG_LEVEL_INFO || (MPU_LOG_LEVEL_DEFAULT && LOG_DEFAULT_LEVEL_INFO)
default 4 if MPU_LOG_LEVEL_DEBUG || (MPU_LOG_LEVEL_DEFAULT && LOG_DEFAULT_LEVEL_DEBUG)
default 5 if MPU_LOG_LEVEL_VERBOSE || (MPU_LOG_LEVEL_DEFAULT && LOG_DEFAULT_LEVEL_VERBOSE)
config MPU_ENABLE_DMP
bool "Digital Motion Processor (DMP)"
default "n"
help
Enable DMP (Digital Motion Processor) code to be compiled.
# config MPU_FIFO_CORRUPTION_CHECK
# bool "Enable FIFO packet corruption check (DMP only)"
# depends on MPU_ENABLE_DMP
# default "y"
# help
# Check for corrupted FIFO packet by monitoring the quaternion data and
# ensuring that the magnitude is always normalized to one. This
# shouldn't happen in normal operation, but if an I2C error occurs,
# the FIFO reads might become misaligned.
config MPU_LOG_ERROR_TRACES
bool "Log communication error traces"
depends on MPU_LOG_LEVEL > 0
default "y"
help
Display on console communication error traces that occur within MPU driver code.
Mostly for debugging.
endmenu