2 * This file is part of INAV Project.
4 * Cleanflight 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 * Cleanflight 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 Cleanflight. If not, see <http://www.gnu.org/licenses/>.
20 #define TARGET_BOARD_IDENTIFIER "GEPR"
22 #define USBD_PRODUCT_STRING "GEPRCF405"
30 #define BEEPER_INVERTED
32 // *************** Gyro & ACC **********************
37 #define USE_SPI_DEVICE_3
39 #define SPI3_SCK_PIN PB3
40 #define SPI3_MISO_PIN PB4
41 #define SPI3_MOSI_PIN PB5
44 #define USE_IMU_MPU6000
45 #define IMU_MPU6000_ALIGN CW180_DEG
46 #define MPU6000_CS_PIN PA15
47 #define MPU6000_SPI_BUS BUS_SPI3
49 #define USE_IMU_BMI270
50 #define IMU_BMI270_ALIGN CW180_DEG
51 #define BMI270_CS_PIN PA15
52 #define BMI270_SPI_BUS BUS_SPI3
54 #define USE_IMU_ICM42605
55 #define IMU_ICM42605_ALIGN CW180_DEG
56 #define ICM42605_CS_PIN PA15
57 #define ICM42605_SPI_BUS BUS_SPI3
59 // *************** I2C/Baro/Mag *********************
61 #define USE_I2C_DEVICE_1
64 #define USE_I2C_DEVICE_2
69 #define BARO_I2C_BUS BUS_I2C2
70 #define USE_BARO_BMP280
71 #define USE_BARO_DPS310
72 #define USE_BARO_MS5611
75 #define MAG_I2C_BUS BUS_I2C1
78 #define TEMPERATURE_I2C_BUS BUS_I2C1
80 #define PITOT_I2C_BUS BUS_I2C1
82 #define USE_RANGEFINDER
83 #define RANGEFINDER_I2C_BUS BUS_I2C1
84 #define BNO055_I2C_BUS BUS_I2C1
86 // *************** FLASH **************************
87 #define M25P16_CS_PIN PB12
88 #define M25P16_SPI_BUS BUS_SPI2
90 #define USE_FLASH_M25P16
91 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
93 #define USE_SPI_DEVICE_2
94 #define SPI2_SCK_PIN PB13
95 #define SPI2_MISO_PIN PB14
96 #define SPI2_MOSI_PIN PB15
98 // *************** OSD *****************************
99 #define USE_SPI_DEVICE_1
100 #define SPI1_SCK_PIN PA5
101 #define SPI1_MISO_PIN PA6
102 #define SPI1_MOSI_PIN PA7
105 #define MAX7456_SPI_BUS BUS_SPI1
106 #define MAX7456_CS_PIN PA4
108 // *************** UART *****************************
112 #define UART1_RX_PIN PB7
113 #define UART1_TX_PIN PB6
116 #define UART2_RX_PIN PA3
117 #define UART2_TX_PIN PA2
120 #define UART3_RX_PIN PC11
121 #define UART3_TX_PIN PC10
124 #define UART4_RX_PIN PA1
125 #define UART4_TX_PIN PA0
128 #define UART5_RX_PIN PD2
129 #define UART5_TX_PIN PC12
132 #define UART6_RX_PIN PC7
133 #define UART6_TX_PIN PC6
135 #define SERIAL_PORT_COUNT 7
137 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
138 #define SERIALRX_PROVIDER SERIALRX_SBUS
139 #define SERIALRX_UART SERIAL_PORT_USART2
141 // *************** ADC *****************************
143 #define ADC_INSTANCE ADC1
144 #define ADC1_DMA_STREAM DMA2_Stream0
145 #define ADC_CHANNEL_1_PIN PC1
146 #define ADC_CHANNEL_2_PIN PC2
147 #define ADC_CHANNEL_3_PIN PC0
149 #define VBAT_ADC_CHANNEL ADC_CHN_1
150 #define RSSI_ADC_CHANNEL ADC_CHN_2
151 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_3
154 #define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_CURRENT_METER | FEATURE_TELEMETRY | FEATURE_VBAT | FEATURE_OSD | FEATURE_BLACKBOX)
158 // *************** LEDSTRIP ************************
159 #define USE_LED_STRIP
160 #define WS2811_PIN PB1
164 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
166 #define TARGET_IO_PORTA 0xffff
167 #define TARGET_IO_PORTB 0xffff
168 #define TARGET_IO_PORTC 0xffff
169 #define TARGET_IO_PORTD (BIT(2))
172 #define MAX_PWM_OUTPUT_PORTS 6
175 #define USE_ESC_SENSOR