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 "SMH71"
22 #define USBD_PRODUCT_STRING "SDMODELH7V1"
24 #define USE_TARGET_CONFIG
29 #define BEEPER_INVERTED
31 // *************** IMU generic ***********************
36 // *************** SPI1 ****************
38 #define USE_SPI_DEVICE_1
39 #define SPI1_SCK_PIN PA5
40 #define SPI1_MISO_PIN PA6
41 #define SPI1_MOSI_PIN PA7
44 #define USE_FLASH_W25N01G
45 #define W25N01G_SPI_BUS BUS_SPI1
46 #define W25N01G_CS_PIN PA4
48 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
52 // *************** SPI2 ***********************
53 #define USE_SPI_DEVICE_2
54 #define SPI2_SCK_PIN PB13
55 #define SPI2_MISO_PIN PB14
56 #define SPI2_MOSI_PIN PB15
58 // *************** SPI4 ***************
59 #define USE_SPI_DEVICE_4
60 #define SPI4_SCK_PIN PE2
61 #define SPI4_MISO_PIN PE5
62 #define SPI4_MOSI_PIN PE6
65 #define USE_IMU_MPU6000
66 #define IMU_MPU6000_ALIGN CW270_DEG
67 #define MPU6000_SPI_BUS BUS_SPI4
68 #define MPU6000_CS_PIN PE4
71 #define USE_IMU_BMI270
72 #define BMI270_SPI_BUS BUS_SPI4
73 #define BMI270_CS_PIN PE4
75 #define IMU_BMI270_ALIGN CW0_DEG
78 #define MAX7456_SPI_BUS BUS_SPI2
79 #define MAX7456_CS_PIN PB12
81 // *************** I2C /Baro/Mag *********************
83 #define USE_I2C_DEVICE_1
88 #define BARO_I2C_BUS BUS_I2C1
89 #define USE_BARO_BMP280
90 #define USE_BARO_MS5611
91 #define USE_BARO_DPS310
92 #define USE_BARO_SPL06
95 #define MAG_I2C_BUS BUS_I2C1
98 #define TEMPERATURE_I2C_BUS BUS_I2C1
99 #define PITOT_I2C_BUS BUS_I2C1
101 #define USE_RANGEFINDER
102 #define RANGEFINDER_I2C_BUS BUS_I2C1
104 // *************** UART *****************************
108 #define UART1_TX_PIN PA9
109 #define UART1_RX_PIN PA10
112 #define UART2_TX_PIN PD5
113 #define UART2_RX_PIN PD6
116 #define UART3_TX_PIN PD8
117 #define UART3_RX_PIN PD9
120 #define UART4_TX_PIN PD1
121 #define UART4_RX_PIN PD0
124 #define UART6_TX_PIN PC6
125 #define UART6_RX_PIN PC7
128 #define UART7_RX_PIN PE7
130 #define SERIAL_PORT_COUNT 7
132 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
133 #define SERIALRX_PROVIDER SERIALRX_SBUS
134 #define SERIALRX_UART SERIAL_PORT_USART1
136 // *************** ADC *****************************
138 #define ADC_INSTANCE ADC1
140 #define ADC_CHANNEL_1_PIN PC0
141 #define ADC_CHANNEL_2_PIN PC5
142 #define ADC_CHANNEL_3_PIN PC1
144 #define VBAT_ADC_CHANNEL ADC_CHN_1
145 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_3
146 #define RSSI_ADC_CHANNEL ADC_CHN_2
148 // *************** PINIO ***************************
152 #define PINIO1_PIN PE13
153 #define PINIO2_PIN PB11
154 #define PINIO1_FLAGS PINIO_FLAGS_INVERTED
155 #define PINIO2_FLAGS PINIO_FLAGS_INVERTED
158 // *************** LEDSTRIP ************************
159 #define USE_LED_STRIP
160 #define WS2811_PIN PD12
162 #define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_TELEMETRY | FEATURE_CURRENT_METER | FEATURE_VBAT | FEATURE_TX_PROF_SEL | FEATURE_BLACKBOX)
163 #define CURRENT_METER_SCALE 250
165 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
167 #define TARGET_IO_PORTA 0xffff
168 #define TARGET_IO_PORTB 0xffff
169 #define TARGET_IO_PORTC 0xffff
170 #define TARGET_IO_PORTD 0xffff
171 #define TARGET_IO_PORTE 0xffff
173 #define MAX_PWM_OUTPUT_PORTS 8
175 #define USE_ESC_SENSOR