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)
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/>.
23 #define TARGET_BOARD_IDENTIFIER "MIF3"
27 #undef USE_CRSF_CMS_TELEMETRY
28 #undef USE_TELEMETRY_CRSF
29 #undef USE_TELEMETRY_GHST
30 #undef USE_TELEMETRY_HOTT
31 #undef USE_TELEMETRY_IBUS
32 #undef USE_TELEMETRY_IBUS_EXTENDED
33 #undef USE_TELEMETRY_JETIEXBUS
34 #undef USE_TELEMETRY_LTM
35 #undef USE_TELEMETRY_MAVLINK
36 #undef USE_TELEMETRY_SRXL
39 #undef USE_GYRO_OVERFLOW_CHECK
44 #define BEEPER_PIN PC14
47 #define USE_GYRO_MPU6050
48 #define GYRO_1_ALIGN CW270_DEG
51 #define USE_ACC_MPU6050
55 #define GYRO_1_EXTI_PIN PA13
56 #define USE_MPU_DATA_READY_SIGNAL
61 #define UART1_TX_PIN PA9
62 #define UART1_RX_PIN PA10
65 #define UART2_TX_PIN PB3
66 #define UART2_RX_PIN PB4
68 //#define UART3_TX_PIN PB10
70 #define SERIAL_PORT_COUNT 3
73 #define USE_I2C_DEVICE_1
74 #define I2C_DEVICE (I2CDEV_1)
80 #define USE_SPI_DEVICE_1
81 #define SPI1_SCK_PIN PA5
82 #define SPI1_MISO_PIN PA6
83 #define SPI1_MOSI_PIN PA7
85 #define USE_SPI_DEVICE_2
86 #define SPI2_SCK_PIN PB13
87 #define SPI2_MISO_PIN PB14
88 #define SPI2_MOSI_PIN PB15
91 #define USE_SDCARD_SPI
92 #define SDCARD_SPI_INSTANCE SPI2
93 #define SDCARD_SPI_CS_PIN PB12
94 #define SDCARD_DMA_CHANNEL_TX DMA1_Channel5
97 #define ADC_INSTANCE ADC1
98 #define VBAT_ADC_PIN PA0
99 #define CURRENT_METER_ADC_PIN PA1
101 // Can be used on motor 1 / 2 pads (A02 / A03):
102 #define EXTERNAL1_ADC_PIN NONE
103 #define RSSI_ADC_PIN NONE
105 #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
106 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
109 #define RX_SPI_INSTANCE SPI1
111 #define USE_RX_FRSKY_SPI_D
112 #define USE_RX_FRSKY_SPI_X
113 #define USE_RX_SFHSS_SPI
114 #define USE_RX_REDPINE_SPI
115 #define DEFAULT_RX_FEATURE FEATURE_RX_SPI
116 #define RX_SPI_DEFAULT_PROTOCOL RX_SPI_FRSKY_X
117 #define USE_RX_FRSKY_SPI_TELEMETRY
119 #define RX_NSS_PIN PA4
121 #define RX_SPI_EXTI_PIN PB0
123 #define RX_SPI_LED_PIN PB6
125 #define USE_RX_CC2500_SPI_PA_LNA
127 #define RX_CC2500_SPI_TX_EN_PIN PB1
128 #define RX_CC2500_SPI_LNA_EN_PIN PB11
131 #define USE_RX_CC2500_SPI_DIVERSITY
133 #define RX_CC2500_SPI_ANT_SEL_PIN PB2
135 #define RX_SPI_BIND_PIN PC13
137 #define USE_ESCSERIAL
138 #define ESCSERIAL_TIMER_TX_PIN PB9 // Motor 6, can't use escserial for hexa
140 #define DEFAULT_FEATURES (FEATURE_AIRMODE | FEATURE_TELEMETRY)
142 #define TARGET_IO_PORTA 0xffff
143 #define TARGET_IO_PORTB 0xffff
144 #define TARGET_IO_PORTC (BIT(13)|BIT(14)|BIT(15))
145 #define TARGET_IO_PORTF (BIT(0)|BIT(1)|BIT(4))
147 #define USABLE_TIMER_CHANNEL_COUNT 6
148 #define USED_TIMERS (TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(8) | TIM_N(15))