2 * This file is part of Cleanflight and Betaflight.
4 * Cleanflight and Betaflight are free software. You can redistribute
5 * this software and/or modify this software under the terms of the
6 * GNU General Public License as published by the Free Software
7 * Foundation, either version 3 of the License, or (at your option)
10 * Cleanflight and Betaflight are distributed in the hope that they
11 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
12 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this software.
18 * If not, see <http://www.gnu.org/licenses/>.
23 #define TARGET_BOARD_IDENTIFIER "VRRA"
25 #define USBD_PRODUCT_STRING "VRRACE"
30 #define BEEPER_PIN PA0
31 #define BEEPER_INVERTED
33 #define INVERTER_PIN_UART6 PD7
35 #define GYRO_1_CS_PIN PE10
36 #define GYRO_1_SPI_INSTANCE SPI2
39 #define USE_ACC_SPI_MPU6500
42 #define USE_GYRO_SPI_MPU6500
43 #define GYRO_1_ALIGN CW270_DEG
46 #define GYRO_1_EXTI_PIN PD10
50 #define USE_BARO_MS5611
51 #define MS5611_I2C_INSTANCE I2CDEV_1
54 #define USE_SDCARD_SPI
55 #define SDCARD_DETECT_INVERTED
56 #define SDCARD_DETECT_PIN PD2
57 #define SDCARD_SPI_INSTANCE SPI2
58 #define SDCARD_SPI_CS_PIN PB12
62 #define SDCARD_DETECT_PIN PD2
63 #define SDCARD_SPI_INSTANCE SPI3
64 #define SDCARD_SPI_CS_PIN PB3
72 #define SPI3_TX_DMA_OPT 0 // DMA 1 Stream 4 Channel 0
78 #define USE_FLASH_M25P16
79 #define FLASH_CS_PIN PB3
80 #define FLASH_SPI_INSTANCE SPI3
84 #define USB_DETECT_PIN PA9
85 //#define USE_USB_DETECT
88 #define UART1_RX_PIN PB7
89 #define UART1_TX_PIN PB6
92 #define UART2_RX_PIN PD6
93 #define UART2_TX_PIN PD5
96 #define UART3_RX_PIN PD9
97 #define UART3_TX_PIN PD8
100 #define UART6_RX_PIN PC7
101 #define UART6_TX_PIN PC6
103 #define USE_SOFTSERIAL1
105 #define SOFTSERIAL1_RX_PIN PE13 // PWM 3
106 #define SOFTSERIAL1_TX_PIN PE11 // PWM 2
108 #define USE_SOFTSERIAL2
110 #define SERIAL_PORT_COUNT 8 //VCP, USART1, USART2, USART3, USART6, SOFTSERIAL x 2
112 #define USE_ESCSERIAL
113 #define ESCSERIAL_TIMER_TX_PIN PE9 // (HARDARE=0,PPM)
118 #define USE_SPI_DEVICE_1
120 #define USE_SPI_DEVICE_2
121 #define SPI2_NSS_PIN PE10
122 #define SPI2_SCK_PIN PB13
123 #define SPI2_MISO_PIN PB14
124 #define SPI2_MOSI_PIN PB15
127 #define USE_SPI_DEVICE_3
128 #define SPI3_NSS_PIN PB3
129 #define SPI3_SCK_PIN PC10
130 #define SPI3_MISO_PIN PC11
131 #define SPI3_MOSI_PIN PC12
134 #define USE_I2C_DEVICE_1
135 #define I2C_DEVICE (I2CDEV_1)
136 #define USE_I2C_PULLUP
142 #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
143 #define VBAT_ADC_PIN PC0
144 #define RSSI_ADC_PIN PB1
145 #define CURRENT_METER_ADC_PIN PA5
149 #define DEFAULT_FEATURES (FEATURE_SOFTSERIAL | FEATURE_TELEMETRY)
150 #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
151 #define SERIALRX_PROVIDER SERIALRX_SBUS
153 //#define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
155 #define TARGET_IO_PORTA 0xffff
156 #define TARGET_IO_PORTB 0xffff
157 #define TARGET_IO_PORTC 0xffff
158 #define TARGET_IO_PORTD 0xffff
159 #define TARGET_IO_PORTE 0xffff
161 #define USABLE_TIMER_CHANNEL_COUNT 12
162 #define USED_TIMERS ( TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(9) )