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 #define TARGET_BOARD_IDENTIFIER "FHRCF722"
21 #define USBD_PRODUCT_STRING "FLASHHOBBYF722"
26 #define BEEPER_INVERTED
28 // *************** Gyro & ACC **********************
30 #define USE_SPI_DEVICE_1
32 #define SPI1_NSS_PIN PA4
33 #define SPI1_SCK_PIN PA5
34 #define SPI1_MISO_PIN PA6
35 #define SPI1_MOSI_PIN PA7
37 #define USE_IMU_MPU6000
38 #define IMU_MPU6000_ALIGN CW0_DEG
39 #define MPU6000_CS_PIN SPI1_NSS_PIN
40 #define MPU6000_SPI_BUS BUS_SPI1
42 #define USE_IMU_BMI270
43 #define IMU_BMI270_ALIGN CW0_DEG
44 #define BMI270_CS_PIN SPI1_NSS_PIN
45 #define BMI270_SPI_BUS BUS_SPI1
47 #define USE_IMU_ICM42605
48 #define IMU_ICM42605_ALIGN CW0_DEG
49 #define ICM42605_CS_PIN SPI1_NSS_PIN
50 #define ICM42605_SPI_BUS BUS_SPI1
52 // *************** I2C/Baro/Mag *********************
54 #define USE_I2C_DEVICE_1
58 #define DEFAULT_I2C_BUS BUS_I2C1
61 #define BARO_I2C_BUS DEFAULT_I2C_BUS
65 #define MAG_I2C_BUS DEFAULT_I2C_BUS
68 #define TEMPERATURE_I2C_BUS DEFAULT_I2C_BUS
69 #define PITOT_I2C_BUS DEFAULT_I2C_BUS
71 #define USE_RANGEFINDER
72 #define RANGEFINDER_I2C_BUS DEFAULT_I2C_BUS
74 // *************** FLASH **************************
75 #define USE_SPI_DEVICE_3
76 #define SPI3_NSS_PIN PA15
77 #define SPI3_SCK_PIN PC10
78 #define SPI3_MISO_PIN PC11
79 #define SPI3_MOSI_PIN PC12
81 #define M25P16_CS_PIN SPI3_NSS_PIN
82 #define M25P16_SPI_BUS BUS_SPI3
84 #define USE_FLASH_M25P16
85 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
87 // *************** OSD *****************************
88 #define USE_SPI_DEVICE_2
89 #define SPI2_NSS_PIN PB12
90 #define SPI2_SCK_PIN PB13
91 #define SPI2_MISO_PIN PB14
92 #define SPI2_MOSI_PIN PB15
95 #define MAX7456_SPI_BUS BUS_SPI2
96 #define MAX7456_CS_PIN SPI2_NSS_PIN
98 // *************** UART *****************************
102 #define UART1_RX_PIN PA10
103 #define UART1_TX_PIN PA9
106 #define UART2_RX_PIN PA3
107 #define UART2_TX_PIN PA2
110 #define UART3_RX_PIN PB11
111 #define UART3_TX_PIN PB10
114 #define UART4_RX_PIN PA1
115 #define UART4_TX_PIN PA0
118 #define UART5_RX_PIN PD2
119 #define UART5_TX_PIN NONE
122 #define UART6_RX_PIN PC7
123 #define UART6_TX_PIN PC6
125 #define SERIAL_PORT_COUNT 7
127 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
128 #define SERIALRX_PROVIDER SERIALRX_SBUS
129 #define SERIALRX_UART SERIAL_PORT_USART2
131 // *************** ADC *****************************
133 #define ADC_INSTANCE ADC1
134 #define ADC1_DMA_STREAM DMA2_Stream0
135 #define ADC_CHANNEL_1_PIN PC2
136 #define ADC_CHANNEL_2_PIN PC1
138 #define VBAT_ADC_CHANNEL ADC_CHN_1
139 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
142 #define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_CURRENT_METER | FEATURE_TELEMETRY | FEATURE_VBAT | FEATURE_OSD | FEATURE_BLACKBOX)
143 // *************** PINIO ************************
146 #define PINIO1_PIN PC13
148 // *************** LEDSTRIP ************************
149 #define USE_LED_STRIP
150 #define WS2811_PIN PA8
152 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
154 #define TARGET_IO_PORTA 0xffff
155 #define TARGET_IO_PORTB 0xffff
156 #define TARGET_IO_PORTC 0xffff
157 #define TARGET_IO_PORTD (BIT(2))
159 #define MAX_PWM_OUTPUT_PORTS 8
162 #define USE_ESC_SENSOR