2 * This file is part of INAV Project.
4 * INAV Project 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 * INAV Project 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 INAV Project. If not, see <http://www.gnu.org/licenses/>.
20 #define TARGET_BOARD_IDENTIFIER "IFBLITZF7PRO"
22 #define USBD_PRODUCT_STRING "IFLIGHT_BLITZ_F7_PRO"
27 #define BEEPER_INVERTED
29 // *************** IMU generic ***********************
31 #define USE_TARGET_IMU_HARDWARE_DESCRIPTORS
33 // *************** Gyro & ACC **********************
35 #define USE_SPI_DEVICE_1
37 #define SPI1_SCK_PIN PA5
38 #define SPI1_MISO_PIN PA6
39 #define SPI1_MOSI_PIN PA7
41 #define USE_IMU_MPU6000
42 #define IMU_MPU6000_ALIGN CW270_DEG
43 #define MPU6000_SPI_BUS BUS_SPI1
44 #define MPU6000_CS_PIN PA15
46 #define USE_IMU_BMI270
47 #define IMU_BMI270_ALIGN CW0_DEG_FLIP
48 #define BMI270_SPI_BUS BUS_SPI1
49 #define BMI270_CS_PIN PA15
51 // *************** I2C/Baro/Mag *********************
53 #define USE_I2C_DEVICE_2
54 #define I2C2_SCL PB10 // SCL pad
55 #define I2C2_SDA PB11 // SDA pad
58 #define BARO_I2C_BUS BUS_I2C2
59 #define USE_BARO_BMP280
60 #define USE_BARO_DPS310
64 #define MAG_I2C_BUS BUS_I2C2
67 #define TEMPERATURE_I2C_BUS BUS_I2C2
68 #define PITOT_I2C_BUS BUS_I2C2
70 // *************** SD Card **************************
72 #define USE_SDCARD_SPI
73 #define SDCARD_SPI_BUS BUS_SPI3
74 #define SDCARD_CS_PIN PB9
76 #define USE_SPI_DEVICE_3
77 #define SPI3_SCK_PIN PB3
78 #define SPI3_MISO_PIN PB4
79 #define SPI3_MOSI_PIN PB5
81 #define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
83 // *************** OSD *****************************
84 #define USE_SPI_DEVICE_2
85 #define SPI2_SCK_PIN PB13
86 #define SPI2_MISO_PIN PB14
87 #define SPI2_MOSI_PIN PB15
90 #define MAX7456_SPI_BUS BUS_SPI2
91 #define MAX7456_CS_PIN PB12
93 // *************** UART *****************************
97 #define UART1_RX_PIN PA10
98 #define UART1_TX_PIN PA9
101 #define UART2_RX_PIN PA3
102 #define UART2_TX_PIN PA2
105 #define UART4_RX_PIN PC11
106 #define UART4_TX_PIN PC10
109 #define UART5_RX_PIN PD2
110 #define UART5_TX_PIN PC12
112 #define SERIAL_PORT_COUNT 5
114 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
115 #define SERIALRX_PROVIDER SERIALRX_CRSF
116 #define SERIALRX_UART SERIAL_PORT_USART2
118 // *************** ADC *****************************
120 #define ADC_INSTANCE ADC1
121 #define ADC1_DMA_STREAM DMA2_Stream0
122 #define ADC_CHANNEL_1_PIN PC1
123 #define ADC_CHANNEL_2_PIN PC2
124 #define VBAT_ADC_CHANNEL ADC_CHN_1
125 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
126 #define CURRENT_METER_SCALE 65
128 #define USE_RANGEFINDER
129 #define RANGEFINDER_I2C_BUS BUS_I2C2
131 #define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_CURRENT_METER | FEATURE_TELEMETRY | FEATURE_VBAT | FEATURE_OSD)
133 #define USE_LED_STRIP
134 #define WS2811_PIN PA1 // TIM2_CH2
136 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
138 #define TARGET_IO_PORTA 0xffff
139 #define TARGET_IO_PORTB 0xffff
140 #define TARGET_IO_PORTC 0xffff
141 #define TARGET_IO_PORTD (BIT(2))
143 #define MAX_PWM_OUTPUT_PORTS 8
145 #define USE_ESC_SENSOR