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 #define TARGET_BOARD_IDENTIFIER "BHF7"
22 #define USBD_PRODUCT_STRING "BETAFPVF722"
27 #define BEEPER_INVERTED
29 // *************** Gyro & ACC **********************
31 #define USE_SPI_DEVICE_1
33 #define SPI1_SCK_PIN PA5
34 #define SPI1_MISO_PIN PA6
35 #define SPI1_MOSI_PIN PA7
37 #define MPU6000_CS_PIN PA4
38 #define MPU6000_SPI_BUS BUS_SPI1
40 #define USE_IMU_MPU6000
41 #define IMU_MPU6000_ALIGN CW180_DEG
43 #define USE_IMU_ICM42605
44 #define IMU_ICM42605_ALIGN CW180_DEG
45 #define ICM42605_SPI_BUS BUS_SPI1
46 #define ICM42605_CS_PIN PA4
48 #define USE_IMU_BMI270
49 #define IMU_BMI270_ALIGN CW180_DEG
50 #define BMI270_SPI_BUS BUS_SPI1
51 #define BMI270_CS_PIN PA4
53 // *************** I2C/Baro/Mag *********************
56 #define USE_I2C_DEVICE_1
60 #define USE_I2C_DEVICE_2
61 #define I2C_DEVICE_2_SHARES_UART3
64 #define BARO_I2C_BUS BUS_I2C2
65 #define USE_BARO_BMP280
66 #define USE_BARO_MS5611
67 #define USE_BARO_BMP085
68 #define USE_BARO_DPS310
69 #define USE_BARO_SPL06
72 #define MAG_I2C_BUS BUS_I2C2
75 #define TEMPERATURE_I2C_BUS BUS_I2C2
76 #define PITOT_I2C_BUS BUS_I2C2
77 #define RANGEFINDER_I2C_BUS BUS_I2C2
79 // *************** OSD*************************
80 #define USE_SPI_DEVICE_3
81 #define SPI3_SCK_PIN PB3
82 #define SPI3_MISO_PIN PB4
83 #define SPI3_MOSI_PIN PB5
87 #define MAX7456_SPI_BUS BUS_SPI3
88 #define MAX7456_CS_PIN PA15
91 // *************** UART *****************************
95 #define UART1_RX_PIN PA10
96 #define UART1_TX_PIN PA9
99 #define UART2_RX_PIN PA3
100 #define UART2_TX_PIN PA2
103 #define UART3_RX_PIN PB11
104 #define UART3_TX_PIN PB10
107 #define UART4_RX_PIN PC11
108 #define UART4_TX_PIN PC10
111 #define UART5_RX_PIN PD2
112 #define UART5_TX_PIN PC12
115 #define UART6_RX_PIN PC7
116 #define UART6_TX_PIN PC6
118 #define SERIAL_PORT_COUNT 7
120 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
121 #define SERIALRX_PROVIDER SERIALRX_SBUS
123 // *************** ADC *****************************
125 #define ADC_INSTANCE ADC1
126 #define ADC1_DMA_STREAM DMA2_Stream0
127 #define ADC_CHANNEL_1_PIN PC0
128 #define ADC_CHANNEL_2_PIN PC1
129 #define ADC_CHANNEL_3_PIN PC2
131 #define VBAT_ADC_CHANNEL ADC_CHN_1
132 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
133 #define RSSI_ADC_CHANNEL ADC_CHN_3
136 // *************** FLASH *****************************
137 #define USE_SPI_DEVICE_2
138 #define SPI2_SCK_PIN PB13
139 #define SPI2_MISO_PIN PB14
140 #define SPI2_MOSI_PIN PB15
143 #define USE_FLASH_M25P16
144 #define M25P16_CS_PIN PB12
145 #define M25P16_SPI_BUS BUS_SPI2
147 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
150 #define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_CURRENT_METER | FEATURE_TELEMETRY| FEATURE_VBAT | FEATURE_OSD )
153 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
155 #define TARGET_IO_PORTA 0xffff
156 #define TARGET_IO_PORTB 0xffff
157 #define TARGET_IO_PORTC 0xffff
158 #define TARGET_IO_PORTD (BIT(2))
160 #define MAX_PWM_OUTPUT_PORTS 6
161 #define TARGET_MOTOR_COUNT 4
163 // ESC-related features
165 #define USE_ESC_SENSOR