Removed excess trailing spaces before new lines on licenses.
[betaflight.git] / src / main / build / debug.c
blob4bf55bd0c20a43f19d4c2dabf54fb0e7333f1e0d
1 /*
2 * This file is part of Cleanflight and Betaflight.
4 * Cleanflight and Betaflight are free software. You can redistribute
5 * this software and/or modify this software under the terms of the
6 * GNU General Public License as published by the Free Software
7 * Foundation, either version 3 of the License, or (at your option)
8 * any later version.
10 * Cleanflight and Betaflight are distributed in the hope that they
11 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
12 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this software.
18 * If not, see <http://www.gnu.org/licenses/>.
21 #include "stdint.h"
24 #include "debug.h"
26 int16_t debug[DEBUG16_VALUE_COUNT];
27 uint8_t debugMode;
29 #ifdef DEBUG_SECTION_TIMES
30 uint32_t sectionTimes[2][4];
31 #endif
33 const char * const debugModeNames[DEBUG_COUNT] = {
34 "NONE",
35 "CYCLETIME",
36 "BATTERY",
37 "GYRO",
38 "ACCELEROMETER",
39 "PIDLOOP",
40 "NOTCH",
41 "RC_INTERPOLATION",
42 "ANGLERATE",
43 "ESC_SENSOR",
44 "SCHEDULER",
45 "STACK",
46 "ESC_SENSOR_RPM",
47 "ESC_SENSOR_TMP",
48 "ALTITUDE",
49 "FFT",
50 "FFT_TIME",
51 "FFT_FREQ",
52 "RX_FRSKY_SPI",
53 "GYRO_RAW",
54 "DUAL_GYRO",
55 "DUAL_GYRO_RAW",
56 "DUAL_GYRO_COMBINE",
57 "DUAL_GYRO_DIFF",
58 "MAX7456_SIGNAL",
59 "MAX7456_SPICLOCK",
60 "SBUS",
61 "FPORT",
62 "RANGEFINDER",
63 "RANGEFINDER_QUALITY",
64 "LIDAR_TF",
65 "CORE_TEMP",
66 "RUNAWAY_TAKEOFF",
67 "SDIO",
68 "CURRENT_SENSOR",
69 "USB",