2 * This file is part of INAV Project.
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 #ifdef GEPRC_F722_AIO_UART3
21 #define TARGET_BOARD_IDENTIFIER "GEP3"
23 #define TARGET_BOARD_IDENTIFIER "GEPR"
26 #define USBD_PRODUCT_STRING "GEPRC_F722_AIO"
31 #define BEEPER_INVERTED
33 // *************** Gyro & ACC **********************
36 #define USE_SPI_DEVICE_1
38 #define SPI1_SCK_PIN PA5
39 #define SPI1_MISO_PIN PA6
40 #define SPI1_MOSI_PIN PA7
43 #define USE_IMU_MPU6000
44 #define IMU_MPU6000_ALIGN CW90_DEG
45 #define MPU6000_CS_PIN PA15
46 #define MPU6000_SPI_BUS BUS_SPI1
48 #define USE_IMU_BMI270
49 #define IMU_BMI270_ALIGN CW90_DEG
50 #define BMI270_CS_PIN PA15
51 #define BMI270_SPI_BUS BUS_SPI1
53 #define USE_IMU_ICM42605
54 #define IMU_ICM42605_ALIGN CW90_DEG
55 #define ICM42605_CS_PIN PA15
56 #define ICM42605_SPI_BUS BUS_SPI1
58 // *************** I2C/Baro/Mag *********************
59 #ifndef GEPRC_F722_AIO_UART3
61 #define USE_I2C_DEVICE_2
66 #define BARO_I2C_BUS BUS_I2C2
67 #define USE_BARO_BMP280
68 #define USE_BARO_DPS310
69 #define USE_BARO_MS5611
72 #define MAG_I2C_BUS BUS_I2C2
75 #define TEMPERATURE_I2C_BUS BUS_I2C2
77 #define PITOT_I2C_BUS BUS_I2C2
79 #define USE_RANGEFINDER
80 #define RANGEFINDER_I2C_BUS BUS_I2C2
81 #define BNO055_I2C_BUS BUS_I2C2
84 // *************** FLASH **************************
85 #define M25P16_CS_PIN PB9
86 #define M25P16_SPI_BUS BUS_SPI3
88 #define USE_FLASH_M25P16
89 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
91 #define USE_SPI_DEVICE_3
92 #define SPI3_SCK_PIN PB3
93 #define SPI3_MISO_PIN PB4
94 #define SPI3_MOSI_PIN PB5
96 // *************** OSD *****************************
97 #define USE_SPI_DEVICE_2
98 #define SPI2_SCK_PIN PB13
99 #define SPI2_MISO_PIN PB14
100 #define SPI2_MOSI_PIN PB15
103 #define MAX7456_SPI_BUS BUS_SPI2
104 #define MAX7456_CS_PIN PB12
106 // *************** UART *****************************
110 #define UART1_RX_PIN PA10
111 #define UART1_TX_PIN PA9
114 #define UART2_RX_PIN PA3
115 #define UART2_TX_PIN PA2
117 #ifdef GEPRC_F722_AIO_UART3
119 #define UART3_RX_PIN PB11
120 #define UART3_TX_PIN PB10
124 #define UART4_RX_PIN PC11
125 #define UART4_TX_PIN PC10
128 #define UART5_RX_PIN PD2
129 #define UART5_TX_PIN PC12
131 #ifdef GEPRC_F722_AIO_UART3
132 #define SERIAL_PORT_COUNT 6
134 #define SERIAL_PORT_COUNT 5
137 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
138 #define SERIALRX_PROVIDER SERIALRX_SBUS
139 #define SERIALRX_UART SERIAL_PORT_USART2
141 // *************** ADC *****************************
143 #define ADC_INSTANCE ADC1
144 #define ADC1_DMA_STREAM DMA2_Stream0
145 #define ADC_CHANNEL_1_PIN PC2
146 #define ADC_CHANNEL_2_PIN PC1
148 #define VBAT_ADC_CHANNEL ADC_CHN_1
149 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
152 #define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_CURRENT_METER | FEATURE_TELEMETRY | FEATURE_VBAT | FEATURE_OSD | FEATURE_BLACKBOX)
156 // *************** LEDSTRIP ************************
157 #define USE_LED_STRIP
158 #define WS2811_PIN PA1
162 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
164 #define TARGET_IO_PORTA 0xffff
165 #define TARGET_IO_PORTB 0xffff
166 #define TARGET_IO_PORTC 0xffff
167 #define TARGET_IO_PORTD (BIT(2))
169 #define MAX_PWM_OUTPUT_PORTS 8
172 #define USE_ESC_SENSOR