2 * This file is part of Cleanflight.
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 "RVF7"
22 #define USBD_PRODUCT_STRING "ROVERF7"
27 #define BEEPER_INVERTED
29 // *************** Gyro & ACC **********************
31 #define USE_SPI_DEVICE_1
33 #define SPI1_SCK_PIN PA5
34 #define SPI1_MISO_PIN PA6
35 #define SPI1_MOSI_PIN PA7
37 #define USE_IMU_MPU6000
38 #define IMU_MPU6000_ALIGN CW0_DEG
39 #define MPU6000_CS_PIN PC4
40 #define MPU6000_SPI_BUS BUS_SPI1
43 #define GYRO_INT_EXTI PA4
44 #define USE_MPU_DATA_READY_SIGNAL
47 // *************** I2C/Baro/Mag *********************
49 #define USE_I2C_DEVICE_1
50 #define I2C1_SCL PB8 // SCL pad
51 #define I2C1_SDA PB9 // SDA pad
54 #define BARO_I2C_BUS BUS_I2C1
55 #define USE_BARO_BMP280
56 #define USE_BARO_MS5611
57 #define USE_BARO_BMP085
60 #define MAG_I2C_BUS BUS_I2C1
61 #define USE_MAG_HMC5883
62 #define USE_MAG_QMC5883
63 #define USE_MAG_IST8310
64 #define USE_MAG_IST8308
65 #define USE_MAG_MAG3110
66 #define USE_MAG_LIS3MDL
68 #define TEMPERATURE_I2C_BUS BUS_I2C1
69 #define BNO055_I2C_BUS BUS_I2C1
70 #define PITOT_I2C_BUS BUS_I2C1
72 // *************** SPI2 Flash ***********************
73 #define USE_SPI_DEVICE_2
74 #define SPI2_SCK_PIN PB13
75 #define SPI2_MISO_PIN PB14
76 #define SPI2_MOSI_PIN PB15
79 #define USE_FLASH_M25P16
80 #define M25P16_SPI_BUS BUS_SPI2
81 #define M25P16_CS_PIN PB12
82 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
84 // *************** OSD *****************************
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 #define MAX7456_SPI_BUS BUS_SPI3
92 #define MAX7456_CS_PIN PD2
94 // *************** UART *****************************
96 //#define VBUS_SENSING_PIN PB12
97 //#define VBUS_SENSING_ENABLED
100 #define UART1_RX_PIN PA10
101 #define UART1_TX_PIN PA9
104 #define UART2_RX_PIN NONE
105 #define UART2_TX_PIN PA2
108 #define UART3_RX_PIN PC11
109 #define UART3_TX_PIN PC10
112 #define UART4_RX_PIN NONE
113 #define UART4_TX_PIN PA0
116 #define UART5_RX_PIN NONE
117 #define UART5_TX_PIN PC12
119 #define SERIAL_PORT_COUNT 6
121 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
122 #define SERIALRX_PROVIDER SERIALRX_FPORT
123 #define SERIALRX_UART SERIAL_PORT_USART1
125 // *************** ADC *****************************
127 #define ADC_INSTANCE ADC1
128 #define ADC1_DMA_STREAM DMA2_Stream0
129 #define ADC_CHANNEL_1_PIN PC0
130 #define ADC_CHANNEL_2_PIN PC1
131 #define VBAT_ADC_CHANNEL ADC_CHN_1
132 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
133 #define CURRENT_METER_SCALE 1790
135 #define USE_RANGEFINDER
136 #define RANGEFINDER_I2C_BUS BUS_I2C1
138 #define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_CURRENT_METER | FEATURE_TELEMETRY| FEATURE_VBAT | FEATURE_OSD )
140 #define USE_LED_STRIP
141 #define WS2811_PIN PA15 //TIM2_CH1
143 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
145 #define TARGET_IO_PORTA 0xffff
146 #define TARGET_IO_PORTB 0xffff
147 #define TARGET_IO_PORTC 0xffff
148 #define TARGET_IO_PORTD 0xffff
150 #define MAX_PWM_OUTPUT_PORTS 5
152 #define USE_ESC_SENSOR