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 "AXISFLYINGF7PRO"
21 #define USBD_PRODUCT_STRING "AXISFLYINGF7PRO"
23 #define USE_TARGET_CONFIG
27 #define BEEPER_INVERTED
29 // *************** SPI **********************
32 #define USE_SPI_DEVICE_1
33 #define SPI1_NSS_PIN PA4
34 #define SPI1_SCK_PIN PA5
35 #define SPI1_MISO_PIN PA6
36 #define SPI1_MOSI_PIN PA7
38 #define USE_SPI_DEVICE_2
39 #define SPI2_NSS_PIN PB12
40 #define SPI2_SCK_PIN PB13
41 #define SPI2_MISO_PIN PB14
42 #define SPI2_MOSI_PIN PC3
44 #define USE_SPI_DEVICE_3
45 #define SPI3_NSS_PIN PA15
46 #define SPI3_SCK_PIN PB3
47 #define SPI3_MISO_PIN PB4
48 #define SPI3_MOSI_PIN PB5
50 // *************** SPI1 Gyro & ACC **********************
51 #define USE_IMU_MPU6000
52 #define IMU_MPU6000_ALIGN CW0_DEG
53 #define MPU6000_SPI_BUS BUS_SPI1
54 #define MPU6000_CS_PIN SPI1_NSS_PIN
56 #define USE_IMU_ICM42605
57 #define IMU_ICM42605_ALIGN CW0_DEG
58 #define ICM42605_SPI_BUS BUS_SPI1
59 #define ICM42605_CS_PIN SPI1_NSS_PIN
61 #define USE_IMU_BMI270
62 #define IMU_BMI270_ALIGN CW0_DEG
63 #define BMI270_SPI_BUS BUS_SPI1
64 #define BMI270_CS_PIN SPI1_NSS_PIN
66 // *************** SPI2 OSD ***************//
68 #define MAX7456_SPI_BUS BUS_SPI2
69 #define MAX7456_CS_PIN SPI2_NSS_PIN
71 // *************** SPI3 FLASH ***************//
75 #define USE_FLASH_M25P16
76 #define M25P16_SPI_BUS BUS_SPI3
77 #define M25P16_CS_PIN SPI3_NSS_PIN
79 #define USE_FLASH_W25N01G
80 #define W25N01G_SPI_BUS BUS_SPI3
81 #define W25N01G_CS_PIN SPI3_NSS_PIN
83 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
85 // *************** UART *****************************
89 #define UART1_TX_PIN PA9
90 #define UART1_RX_PIN PA10
93 #define UART2_TX_PIN PA2
94 #define UART2_RX_PIN PA3
97 #define UART3_TX_PIN PC10
98 #define UART3_RX_PIN PC11
101 #define UART4_TX_PIN PA0
102 #define UART4_RX_PIN PA1
105 #define UART5_TX_PIN PC12
106 #define UART5_RX_PIN PD2
109 #define UART6_TX_PIN PC6
110 #define UART6_RX_PIN PC7
112 #define SERIAL_PORT_COUNT 7
114 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
115 #define SERIALRX_PROVIDER SERIALRX_SBUS
116 #define SERIALRX_UART SERIAL_PORT_USART2
118 // *************** I2C/Baro/Mag/Pitot ********************
120 #define DEFAULT_I2C_BUS BUS_I2C1
122 #define USE_I2C_DEVICE_1
127 #define BARO_I2C_BUS BUS_I2C1
128 #define USE_BARO_BMP280
129 #define USE_BARO_SPL06
130 #define USE_BARO_DPS310
132 #define TEMPERATURE_I2C_BUS BUS_I2C1
133 #define BNO055_I2C_BUS BUS_I2C1
136 #define MAG_I2C_BUS BUS_I2C1
139 #define PITOT_I2C_BUS BUS_I2C1
141 // *************** PINIO ***************************
144 #define PINIO1_PIN PC0
145 #define PINIO2_PIN PC14
147 // *************** ADC *****************************
149 #define ADC_INSTANCE ADC1
150 #define ADC1_DMA_STREAM DMA2_Stream0
151 #define ADC_CHANNEL_1_PIN PC2
152 #define ADC_CHANNEL_2_PIN PC1
153 #define VBAT_ADC_CHANNEL ADC_CHN_1
154 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
156 // *************** LED2812 ************************
157 #define USE_LED_STRIP
158 #define WS2811_PIN PA8
160 // *************** OTHERS *************************
161 #define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_OSD | FEATURE_CURRENT_METER | FEATURE_VBAT | FEATURE_TELEMETRY | FEATURE_SOFTSERIAL | FEATURE_LED_STRIP)
163 #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
171 #define USE_ESC_SENSOR