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/>.
22 #define TARGET_BOARD_IDENTIFIER "TMR7"
23 #define USBD_PRODUCT_STRING "TMOTORF7"
26 #define TARGET_BOARD_IDENTIFIER "TMR7HD"
27 #define USBD_PRODUCT_STRING "TMOTORF7HD"
33 #define BEEPER_INVERTED
35 // *************** SPI1 Gyro & ACC *******************
37 #define USE_SPI_DEVICE_1
38 #define SPI1_SCK_PIN PA5
39 #define SPI1_MISO_PIN PA6
40 #define SPI1_MOSI_PIN PA7
42 #define USE_IMU_MPU6000
43 #define IMU_MPU6000_ALIGN CW0_DEG
44 #define MPU6000_CS_PIN PA4
45 #define MPU6000_SPI_BUS BUS_SPI1
47 // *************** I2C Mag *********************
49 #define USE_I2C_DEVICE_2
54 #define BARO_I2C_BUS BUS_I2C2
55 #define USE_BARO_BMP280
56 #define USE_BARO_MS5611
57 #define USE_BARO_DPS310
60 #define MAG_I2C_BUS BUS_I2C2
61 #define USE_MAG_HMC5883
62 #define USE_MAG_QMC5883
63 #define USE_MAG_AK8975
64 #define USE_MAG_HMC5883
65 #define USE_MAG_QMC5883
66 #define USE_MAG_IST8310
67 #define USE_MAG_IST8308
68 #define USE_MAG_MAG3110
69 #define USE_MAG_LIS3MDL
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
81 #define MAX7456_SPI_BUS BUS_SPI2
82 #define MAX7456_CS_PIN PB12
85 // *************** SPI3 BARO & BLACKBOX*******************
86 #define USE_SPI_DEVICE_3
87 #define SPI3_SCK_PIN PB3
88 #define SPI3_MISO_PIN PB4
89 #define SPI3_MOSI_PIN PB5
92 #define USE_FLASH_M25P16
93 #define M25P16_SPI_BUS BUS_SPI3
94 #define M25P16_CS_PIN PC8
95 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
98 #define USE_BARO_BMP280
99 #define USE_BARO_SPI_BMP280
100 #define BMP280_SPI_BUS BUS_SPI3
101 #define BMP280_CS_PIN PC15
103 // *************** UART *****************************
107 #define UART1_TX_PIN PA9
108 #define UART1_RX_PIN PA10
111 #define UART2_TX_PIN PA2
112 #define UART2_RX_PIN PA3
115 #define UART3_TX_PIN PC10
116 #define UART3_RX_PIN PC11
119 #define UART4_TX_PIN PA0
120 #define UART4_RX_PIN PA1
123 #define UART5_TX_PIN PC12
124 #define UART5_RX_PIN PD2
126 #define USE_ESCSERIAL
127 #define ESCSERIAL_TIMER_TX_PIN PA15
129 #define SERIAL_PORT_COUNT 6
131 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
132 #define SERIALRX_PROVIDER SERIALRX_SBUS
133 #define SERIALRX_UART SERIAL_PORT_USART5
134 #define SBUS_TELEMETRY_UART SERIAL_PORT_USART1
136 // *************** ADC *****************************
138 #define ADC_INSTANCE ADC1
139 #define ADC1_DMA_STREAM DMA2_Stream0
141 #define ADC_CHANNEL_1_PIN PC1
142 #define ADC_CHANNEL_2_PIN PC2
143 #define ADC_CHANNEL_3_PIN PC3
145 #define VBAT_ADC_CHANNEL ADC_CHN_1
146 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
147 #define RSSI_ADC_CHANNEL ADC_CHN_3
149 // *************** LEDSTRIP ************************
150 #define USE_LED_STRIP
151 #define WS2811_PIN PA8
153 #define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_TELEMETRY | FEATURE_CURRENT_METER | FEATURE_VBAT | FEATURE_BLACKBOX)
154 #define CURRENT_METER_SCALE 179
156 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
158 #define TARGET_IO_PORTA 0xffff
159 #define TARGET_IO_PORTB 0xffff
160 #define TARGET_IO_PORTC 0xffff
161 #define TARGET_IO_PORTD 0x0004
163 #define MAX_PWM_OUTPUT_PORTS 8
165 #define USE_ESC_SENSOR