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
48 #define GYRO_1_EXTI_PIN PD10
49 #define USE_MPU_DATA_READY_SIGNAL
53 #define USE_BARO_MS5611
54 #define MS5611_I2C_INSTANCE I2CDEV_1
57 #define USE_SDCARD_SPI
58 #define SDCARD_DETECT_INVERTED
59 #define SDCARD_DETECT_PIN PD2
60 #define SDCARD_SPI_INSTANCE SPI2
61 #define SDCARD_SPI_CS_PIN PB12
65 #define SDCARD_DETECT_PIN PD2
66 #define SDCARD_SPI_INSTANCE SPI3
67 #define SDCARD_SPI_CS_PIN PB3
75 #define SPI3_TX_DMA_OPT 0 // DMA 1 Stream 4 Channel 0
81 #define USE_FLASH_M25P16
82 #define FLASH_CS_PIN PB3
83 #define FLASH_SPI_INSTANCE SPI3
87 #define USB_DETECT_PIN PA9
88 //#define USE_USB_DETECT
91 #define UART1_RX_PIN PB7
92 #define UART1_TX_PIN PB6
95 #define UART2_RX_PIN PD6
96 #define UART2_TX_PIN PD5
99 #define UART3_RX_PIN PD9
100 #define UART3_TX_PIN PD8
103 #define UART6_RX_PIN PC7
104 #define UART6_TX_PIN PC6
106 #define USE_SOFTSERIAL1
108 #define SOFTSERIAL1_RX_PIN PE13 // PWM 3
109 #define SOFTSERIAL1_TX_PIN PE11 // PWM 2
111 #define USE_SOFTSERIAL2
113 #define SERIAL_PORT_COUNT 8 //VCP, USART1, USART2, USART3, USART6, SOFTSERIAL x 2
115 #define USE_ESCSERIAL
116 #define ESCSERIAL_TIMER_TX_PIN PE9 // (HARDARE=0,PPM)
121 #define USE_SPI_DEVICE_1
123 #define USE_SPI_DEVICE_2
124 #define SPI2_NSS_PIN PE10
125 #define SPI2_SCK_PIN PB13
126 #define SPI2_MISO_PIN PB14
127 #define SPI2_MOSI_PIN PB15
130 #define USE_SPI_DEVICE_3
131 #define SPI3_NSS_PIN PB3
132 #define SPI3_SCK_PIN PC10
133 #define SPI3_MISO_PIN PC11
134 #define SPI3_MOSI_PIN PC12
137 #define USE_I2C_DEVICE_1
138 #define I2C_DEVICE (I2CDEV_1)
139 #define USE_I2C_PULLUP
145 #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
146 #define VBAT_ADC_PIN PC0
147 #define RSSI_ADC_PIN PB1
148 #define CURRENT_METER_ADC_PIN PA5
152 #define DEFAULT_FEATURES (FEATURE_SOFTSERIAL | FEATURE_TELEMETRY)
153 #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
154 #define SERIALRX_PROVIDER SERIALRX_SBUS
156 //#define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
158 #define TARGET_IO_PORTA 0xffff
159 #define TARGET_IO_PORTB 0xffff
160 #define TARGET_IO_PORTC 0xffff
161 #define TARGET_IO_PORTD 0xffff
162 #define TARGET_IO_PORTE 0xffff
164 #define USABLE_TIMER_CHANNEL_COUNT 12
165 #define USED_TIMERS ( TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(9) )