2 * This file is part of INAV.
4 * INAV 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 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. If not, see <http://www.gnu.org/licenses/>.
20 #define TARGET_BOARD_IDENTIFIER "FX74"
21 #define USBD_PRODUCT_STRING "FOXEER F722 V4"
26 #define BEEPER_INVERTED
31 #define USE_MPU_DATA_READY_SIGNAL
33 #define USE_IMU_ICM42605
34 #define IMU_ICM42605_ALIGN CW270_DEG
35 #define ICM42605_SPI_BUS BUS_SPI1
36 #define ICM42605_CS_PIN PB2
37 #define ICM42605_EXTI_PIN PC4
41 #define USE_SPI_DEVICE_1
42 #define SPI1_SCK_PIN PA5
43 #define SPI1_MISO_PIN PA6
44 #define SPI1_MOSI_PIN PA7
46 #define USE_SPI_DEVICE_2
47 #define SPI2_SCK_PIN PB13
48 #define SPI2_MISO_PIN PB14
49 #define SPI2_MOSI_PIN PB15
51 #define USE_SPI_DEVICE_3
52 #define SPI3_SCK_PIN PC10
53 #define SPI3_MISO_PIN PC11
54 #define SPI3_MOSI_PIN PB5
57 #define USE_I2C_DEVICE_1
61 /*** Onboard flash ***/
63 #define USE_FLASH_M25P16
64 #define M25P16_CS_PIN PB12
65 #define M25P16_SPI_BUS BUS_SPI2
69 #define MAX7456_SPI_BUS BUS_SPI3
70 #define MAX7456_CS_PIN PC3
72 /*** Serial ports ***/
76 #define UART1_TX_PIN PB6
77 #define UART1_RX_PIN PB7
82 #define UART3_TX_PIN PB10
83 #define UART3_RX_PIN PB11
86 #define UART4_TX_PIN PA0
87 #define UART4_RX_PIN PA1
90 #define UART5_TX_PIN PC12
91 #define UART5_RX_PIN PD2
93 #ifdef FOXEERF722V4_X8
94 //X8 variant without UART2 and UART6
95 #define SERIAL_PORT_COUNT 5
98 #define SERIAL_PORT_COUNT 7
101 #define UART2_TX_PIN PA2
102 #define UART2_RX_PIN PA3
105 #define UART6_TX_PIN PC6
106 #define UART6_RX_PIN PC7
113 #define BARO_I2C_BUS BUS_I2C1
114 #define USE_BARO_BMP280
115 #define USE_BARO_MS5611
116 #define USE_BARO_DPS310
117 #define USE_BARO_SPL06
120 #define MAG_I2C_BUS BUS_I2C1
121 #define USE_MAG_HMC5883
122 #define USE_MAG_QMC5883
123 #define USE_MAG_IST8310
124 #define USE_MAG_MAG3110
125 #define USE_MAG_LIS3MDL
127 #define BNO055_I2C_BUS BUS_I2C1
131 #define ADC_CHANNEL_1_PIN PC0
132 #define ADC_CHANNEL_2_PIN PC2
133 #define ADC_CHANNEL_3_PIN PA0
135 #define VBAT_ADC_CHANNEL ADC_CHN_1
136 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
137 #define RSSI_ADC_CHANNEL ADC_CHN_3
140 #define USE_LED_STRIP
141 #define WS2811_PIN PA15
143 /*** Default settings ***/
144 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
145 #define SERIALRX_UART SERIAL_PORT_USART1
146 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
147 #define SERIALRX_PROVIDER SERIALRX_SBUS
149 /*** Timer/PWM output ***/
150 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
151 #define MAX_PWM_OUTPUT_PORTS 4
153 #define USE_ESC_SENSOR
156 #define TARGET_IO_PORTA 0xffff
157 #define TARGET_IO_PORTB 0xffff
158 #define TARGET_IO_PORTC 0xffff
159 #define TARGET_IO_PORTD (BIT(2))