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/>.
21 #define TARGET_BOARD_IDENTIFIER "H743"
22 #define USBD_PRODUCT_STRING "MATEKH743"
24 #define USE_TARGET_CONFIG
30 #define BEEPER_INVERTED
31 #define BEEPER_PWM_FREQUENCY 2500
33 // *************** IMU generic ***********************
35 #define USE_TARGET_IMU_HARDWARE_DESCRIPTORS
39 // *************** SPI1 IMU0 MPU6000 ****************
41 #define USE_SPI_DEVICE_1
42 #define SPI1_SCK_PIN PA5
43 #define SPI1_MISO_PIN PA6
44 #define SPI1_MOSI_PIN PD7
46 #define USE_IMU_MPU6000
48 #define IMU_MPU6000_ALIGN CW0_DEG_FLIP
49 #define MPU6000_SPI_BUS BUS_SPI1
50 #define MPU6000_CS_PIN PC15
52 // *************** SPI4 IMU1 ICM20602 **************
53 #define USE_SPI_DEVICE_4
54 #define SPI4_SCK_PIN PE12
55 #define SPI4_MISO_PIN PE13
56 #define SPI4_MOSI_PIN PE14
58 #define USE_IMU_MPU6500
60 #define IMU_MPU6500_ALIGN CW0_DEG_FLIP
61 #define MPU6500_SPI_BUS BUS_SPI4
62 #define MPU6500_CS_PIN PE11
64 // *************** SPI4 IMU2 ICM42605 **************
65 #define USE_IMU_ICM42605
67 #define IMU_ICM42605_ALIGN CW90_DEG_FLIP
68 #define ICM42605_SPI_BUS BUS_SPI4
69 #define ICM42605_CS_PIN PC13
71 // *************** SPI2 OSD ***********************
72 #define USE_SPI_DEVICE_2
73 #define SPI2_SCK_PIN PB13
74 #define SPI2_MISO_PIN PB14
75 #define SPI2_MOSI_PIN PB15
78 #define MAX7456_SPI_BUS BUS_SPI2
79 #define MAX7456_CS_PIN PB12
81 // *************** SPI3 SPARE for external RM3100 ***********
82 #define USE_SPI_DEVICE_3
83 #define SPI3_SCK_PIN PB3
84 #define SPI3_MISO_PIN PB4
85 #define SPI3_MOSI_PIN PB5
87 #define USE_MAG_RM3100
88 #define RM3100_CS_PIN PE2 //CS2 pad
90 #define RM3100_SPI_BUS BUS_SPI3
92 // *************** I2C /Baro/Mag *********************
94 #define USE_I2C_DEVICE_1
98 #define USE_I2C_DEVICE_2
100 #define I2C2_SDA PB11
103 #define BARO_I2C_BUS BUS_I2C2
104 #define USE_BARO_BMP280
105 #define USE_BARO_MS5611
106 #define USE_BARO_DPS310
107 #define USE_BARO_SPL06
110 #define MAG_I2C_BUS BUS_I2C1
111 #define USE_MAG_HMC5883
112 #define USE_MAG_QMC5883
113 #define USE_MAG_IST8310
114 #define USE_MAG_IST8308
115 #define USE_MAG_MAG3110
116 #define USE_MAG_LIS3MDL
118 #define TEMPERATURE_I2C_BUS BUS_I2C2
119 #define PITOT_I2C_BUS BUS_I2C2
121 #define USE_RANGEFINDER
122 #define RANGEFINDER_I2C_BUS BUS_I2C1
124 // *************** UART *****************************
128 #define UART1_TX_PIN PA9
129 #define UART1_RX_PIN PA10
132 #define UART2_TX_PIN PD5
133 #define UART2_RX_PIN PD6
136 #define UART3_TX_PIN PD8
137 #define UART3_RX_PIN PD9
140 #define UART4_TX_PIN PB9
141 #define UART4_RX_PIN PB8
144 #define UART6_TX_PIN PC6
145 #define UART6_RX_PIN PC7
148 #define UART7_TX_PIN PE8
149 #define UART7_RX_PIN PE7
152 #define UART8_TX_PIN PE1
153 #define UART8_RX_PIN PE0
155 #define USE_SOFTSERIAL1
156 #define SOFTSERIAL_1_TX_PIN PC6 //TX6 pad
157 #define SOFTSERIAL_1_RX_PIN PC6 //TX6 pad
159 #define SERIAL_PORT_COUNT 9
161 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
162 #define SERIALRX_PROVIDER SERIALRX_SBUS
163 #define SERIALRX_UART SERIAL_PORT_USART6
165 // *************** SDIO SD BLACKBOX*******************
167 #define USE_SDCARD_SDIO
168 #define SDCARD_SDIO_DEVICE SDIODEV_1
169 #define SDCARD_SDIO_4BIT
171 #define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
173 // *************** ADC *****************************
175 #define ADC_INSTANCE ADC1
177 #define ADC_CHANNEL_1_PIN PC0 //ADC123 VBAT1
178 #define ADC_CHANNEL_2_PIN PC1 //ADC123 CURR1
179 #define ADC_CHANNEL_3_PIN PC5 //ADC12 RSSI
180 #define ADC_CHANNEL_4_PIN PC4 //ADC12 AirS
181 #define ADC_CHANNEL_5_PIN PA4 //ADC12 VB2
182 #define ADC_CHANNEL_6_PIN PA7 //ADC12 CU2
184 #define VBAT_ADC_CHANNEL ADC_CHN_1
185 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
186 #define RSSI_ADC_CHANNEL ADC_CHN_3
187 #define AIRSPEED_ADC_CHANNEL ADC_CHN_4
189 // *************** PINIO ***************************
192 #define PINIO1_PIN PD10 // VTX power switcher
193 #define PINIO2_PIN PD11 // 2xCamera switcher
195 // *************** LEDSTRIP ************************
196 #define USE_LED_STRIP
197 #define WS2811_PIN PA8
199 #define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_TELEMETRY | FEATURE_CURRENT_METER | FEATURE_VBAT | FEATURE_TX_PROF_SEL | FEATURE_BLACKBOX)
200 #define CURRENT_METER_SCALE 250
202 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
204 #define TARGET_IO_PORTA 0xffff
205 #define TARGET_IO_PORTB 0xffff
206 #define TARGET_IO_PORTC 0xffff
207 #define TARGET_IO_PORTD 0xffff
208 #define TARGET_IO_PORTE 0xffff
210 #define MAX_PWM_OUTPUT_PORTS 15
212 #define USE_ESC_SENSOR