Merge pull request #10558 from iNavFlight/MrD_Correct-comments-on-OSD-symbols
[inav.git] / src / main / target / GEPRCF722_BT_HD / target.h
blob5494ed83009ccef427e33a0f01b7397aefb8c3db
1 /*
2 * This file is part of INAV Project.
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/>.
18 #pragma once
20 #define TARGET_BOARD_IDENTIFIER "GEPR"
22 #define USBD_PRODUCT_STRING "GEPRCF722_BT_HD"
24 #define LED0 PC4
26 #define BEEPER PC15
27 #define BEEPER_INVERTED
29 // *************** Gyro & ACC **********************
31 #define USE_SPI
32 #define USE_SPI_DEVICE_1
34 #define SPI1_SCK_PIN PA5
35 #define SPI1_MISO_PIN PA6
36 #define SPI1_MOSI_PIN PA7
39 #define USE_IMU_MPU6000
40 #define IMU_MPU6000_ALIGN CW0_DEG
41 #define MPU6000_CS_PIN PA15
42 #define MPU6000_SPI_BUS BUS_SPI1
44 #define USE_IMU_BMI270
45 #define IMU_BMI270_ALIGN CW0_DEG
46 #define BMI270_CS_PIN PA15
47 #define BMI270_SPI_BUS BUS_SPI1
49 #define USE_IMU_ICM42605
50 #define IMU_ICM42605_ALIGN CW0_DEG
51 #define ICM42605_CS_PIN PA15
52 #define ICM42605_SPI_BUS BUS_SPI1
54 // *************** I2C/Baro/Mag *********************
55 #define USE_I2C
56 #define USE_I2C_DEVICE_2
57 #define I2C2_SCL PB10
58 #define I2C2_SDA PB11
60 #define USE_BARO
61 #define BARO_I2C_BUS BUS_I2C2
62 #define USE_BARO_BMP280
63 #define USE_BARO_DPS310
64 #define USE_BARO_MS5611
66 #define USE_MAG
67 #define MAG_I2C_BUS BUS_I2C2
68 #define USE_MAG_ALL
70 #define TEMPERATURE_I2C_BUS BUS_I2C2
72 #define PITOT_I2C_BUS BUS_I2C2
74 #define USE_RANGEFINDER
75 #define RANGEFINDER_I2C_BUS BUS_I2C2
76 #define BNO055_I2C_BUS BUS_I2C2
78 // *************** FLASH **************************
79 #define USE_SDCARD
80 #define USE_SDCARD_SPI
81 #define SDCARD_SPI_BUS BUS_SPI3
82 #define SDCARD_CS_PIN PB9
85 #define USE_SPI_DEVICE_3
86 #define SPI3_SCK_PIN PB3
87 #define SPI3_MISO_PIN PB4
88 #define SPI3_MOSI_PIN PB5
91 // ************PINIO to disable BT*****************
92 #define USE_PINIO
93 #define USE_PINIOBOX
94 #define PINIO1_PIN PC13
95 #define PINIO1_FLAGS PINIO_FLAGS_INVERTED
98 // ************PINIO to other
99 #define PINIO2_PIN PC14 //Enable vsw
100 #define PINIO3_PIN PB8
103 // *************** OSD *****************************
104 #define USE_SPI_DEVICE_2
105 #define SPI2_SCK_PIN PB13
106 #define SPI2_MISO_PIN PB14
107 #define SPI2_MOSI_PIN PB15
109 #define USE_MAX7456
110 #define MAX7456_SPI_BUS BUS_SPI2
111 #define MAX7456_CS_PIN PB12
113 // *************** UART *****************************
114 #define USE_VCP
116 #define USE_UART1
117 #define UART1_RX_PIN PA10
118 #define UART1_TX_PIN PA9
120 #define USE_UART2
121 #define UART2_RX_PIN PA3
122 #define UART2_TX_PIN PA2
124 #define USE_UART4
125 #define UART4_RX_PIN PC11
126 #define UART4_TX_PIN PC10
128 #define USE_UART5
129 #define UART5_RX_PIN PD2
130 #define UART5_TX_PIN PC12
132 #define USE_UART6
133 #define UART6_RX_PIN PC7
134 #define UART6_TX_PIN PC6
136 #define SERIAL_PORT_COUNT 6
138 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
139 #define SERIALRX_PROVIDER SERIALRX_SBUS
140 #define SERIALRX_UART SERIAL_PORT_USART2
142 // *************** ADC *****************************
143 #define USE_ADC
144 #define ADC_INSTANCE ADC1
145 #define ADC1_DMA_STREAM DMA2_Stream0
146 #define ADC_CHANNEL_1_PIN PC1
147 #define ADC_CHANNEL_2_PIN PC2
148 #define ADC_CHANNEL_3_PIN PC0
150 #define VBAT_ADC_CHANNEL ADC_CHN_1
151 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
152 #define RSSI_ADC_CHANNEL ADC_CHN_3
154 #define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_CURRENT_METER | FEATURE_TELEMETRY | FEATURE_VBAT | FEATURE_OSD | FEATURE_BLACKBOX)
156 #define USE_LED_STRIP
157 #define WS2811_PIN PA1
159 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
161 #define TARGET_IO_PORTA 0xffff
162 #define TARGET_IO_PORTB 0xffff
163 #define TARGET_IO_PORTC 0xffff
164 #define TARGET_IO_PORTD (BIT(2))
166 #define MAX_PWM_OUTPUT_PORTS 8
168 #define USE_DSHOT
169 #define USE_ESC_SENSOR