2 * This file is part of Cleanflight.
4 * Cleanflight is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * Cleanflight is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with Cleanflight. If not, see <http://www.gnu.org/licenses/>.
20 // type conversion warnings.
21 // -Wconversion can be turned on to enable the process of eliminating these warnings
22 //#pragma GCC diagnostic warning "-Wconversion"
23 #pragma GCC diagnostic ignored "-Wsign-conversion"
24 // -Wpadded can be turned on to check padding of structs
25 //#pragma GCC diagnostic warning "-Wpadded"
27 //#define SCHEDULER_DEBUG // define this to use scheduler debug[] values. Undefined by default for performance reasons
28 #define DEBUG_MODE DEBUG_NONE // change this to change initial debug mode
30 #define I2C1_OVERCLOCK true
31 #define I2C2_OVERCLOCK true
34 #define STM_FAST_TARGET
35 #define I2C3_OVERCLOCK true
36 #define I2C4_OVERCLOCK true
39 /****************************
40 STM32 F4 specific settings.
41 ****************************/
43 #define STM_FAST_TARGET
45 #define I2C3_OVERCLOCK true
53 // Using RX DMA disables the use of receive callbacks
54 #define USE_UART1_RX_DMA
55 #define USE_UART1_TX_DMA
57 #define CLI_MINIMAL_VERBOSITY
61 #define USE_SERIALRX_CRSF // Team Black Sheep Crossfire protocol
62 #define USE_SERIALRX_SPEKTRUM // DSM2 and DSMX protocol
63 #define USE_SERIALRX_SBUS // Frsky and Futaba receivers
64 #define USE_SERIALRX_IBUS // FlySky and Turnigy receivers
65 #define USE_SERIALRX_SUMD // Graupner Hott protocol
66 #define USE_SERIALRX_SUMH // Graupner legacy protocol
67 #define USE_SERIALRX_XBUS // JR
72 #if defined(STM_FAST_TARGET)
73 #define MAX_AUX_CHANNELS 99
74 #define TASK_GYROPID_DESIRED_PERIOD 125
75 #define SCHEDULER_DELAY_LIMIT 10
77 #define MAX_AUX_CHANNELS 6
78 #define TASK_GYROPID_DESIRED_PERIOD 1000
79 #define SCHEDULER_DELAY_LIMIT 100
86 #define TELEMETRY_FRSKY
87 #define TELEMETRY_HOTT
88 #define TELEMETRY_IBUS
90 #define TELEMETRY_SMARTPORT
94 #if (FLASH_SIZE > 128)
97 #define USE_MSP_DISPLAYPORT
98 #define TELEMETRY_CRSF
99 #define TELEMETRY_SRXL
100 #define TELEMETRY_JETIEXBUS
101 #define TELEMETRY_MAVLINK
102 #define TELEMETRY_IBUS
104 #define USE_SERIALRX_JETIEXBUS
106 #define VTX_SMARTAUDIO
108 #define SKIP_CLI_COMMAND_HELP