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
37 #define TELEMETRY_IBUS
40 /****************************
41 STM32 F4 specific settings.
42 ****************************/
44 #define STM_FAST_TARGET
46 #define I2C3_OVERCLOCK true
47 #define TELEMETRY_IBUS
57 // Using RX DMA disables the use of receive callbacks
58 #define USE_UART1_RX_DMA
59 #define USE_UART1_TX_DMA
65 #define USE_SERIALRX_CRSF // Team Black Sheep Crossfire protocol
66 #define USE_SERIALRX_SPEKTRUM // SRXL, DSM2 and DSMX protocol
67 #define USE_SERIALRX_SBUS // Frsky and Futaba receivers
68 #define USE_SERIALRX_IBUS // FlySky and Turnigy receivers
69 #define USE_SERIALRX_SUMD // Graupner Hott protocol
70 #define USE_SERIALRX_SUMH // Graupner legacy protocol
71 #define USE_SERIALRX_XBUS // JR
76 #if defined(STM_FAST_TARGET)
77 #define MAX_AUX_CHANNELS 99
78 #define TASK_GYROPID_DESIRED_PERIOD 125
79 #define SCHEDULER_DELAY_LIMIT 10
81 #define MAX_AUX_CHANNELS 6
82 #define TASK_GYROPID_DESIRED_PERIOD 1000
83 #define SCHEDULER_DELAY_LIMIT 100
90 #define TELEMETRY_FRSKY
91 #define TELEMETRY_HOTT
93 #define TELEMETRY_SMARTPORT
95 #define USE_RESOURCE_MGMT
98 #if (FLASH_SIZE > 128)
100 #define USE_DASHBOARD
101 #define USE_MSP_DISPLAYPORT
102 #define TELEMETRY_CRSF
103 #define TELEMETRY_SRXL
104 #define TELEMETRY_JETIEXBUS
105 #define TELEMETRY_MAVLINK
107 #define USE_SERIALRX_JETIEXBUS
110 #define VTX_SMARTAUDIO
112 #define USE_SENSOR_NAMES