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/>.
24 #if defined(REVOLTOSD)
25 #define TARGET_BOARD_IDENTIFIER "ROSD"
26 #define USBD_PRODUCT_STRING "RevoltOSD"
28 #define TARGET_BOARD_IDENTIFIER "RVLT"
29 #define USBD_PRODUCT_STRING "Revolt"
33 #define DEFAULT_MIXER MIXER_QUADX_1234
40 #define BEEPER_PIN PB4
42 #define ENABLE_DSHOT_DMAR DSHOT_DMAR_ON
44 #define USE_TRANSPONDER
46 #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
47 #define SERIALRX_PROVIDER SERIALRX_SBUS
48 #define SERIALRX_UART SERIAL_PORT_USART1
50 #define USE_TARGET_CONFIG
52 #define INVERTER_PIN_UART1 PC0
54 /*----------Spi Config--------*/
57 #define USE_SPI_DEVICE_1
58 #define SPI1_NSS_PIN PA4
59 #define SPI1_SCK_PIN PA5
60 #define SPI1_MISO_PIN PA6
61 #define SPI1_MOSI_PIN PA7
63 #define USE_SPI_DEVICE_2
64 #define SPI2_NSS_PIN PB12
65 #define SPI2_SCK_PIN PB13
66 #define SPI2_MISO_PIN PB14
67 #define SPI2_MOSI_PIN PB15
69 #define USE_SPI_DEVICE_3
70 #define SPI3_NSS_PIN PB3
71 #define SPI3_SCK_PIN PC10
72 #define SPI3_MISO_PIN PC11
73 #define SPI3_MOSI_PIN PC12
75 /*----------I2C Config--------*/
77 #define USE_I2C_DEVICE_1
78 #define I2C_DEVICE (I2CDEV_1)
82 /*----------Gyro Config--------*/
86 #define USE_GYRO_SPI_MPU6500
87 #define USE_ACC_SPI_MPU6500
89 #define GYRO_1_CS_PIN PA4
90 #define GYRO_1_SPI_INSTANCE SPI1
92 #define GYRO_1_ALIGN CW0_DEG
96 #define GYRO_1_EXTI_PIN PC4
97 #define USE_MPU_DATA_READY_SIGNAL
99 /*----------Flash Config--------*/
100 #define FLASH_CS_PIN PB3
102 #if defined(REVOLTOSD)
103 #define FLASH_SPI_INSTANCE SPI2
105 #define FLASH_SPI_INSTANCE SPI3
110 #define USE_FLASH_M25P16
112 #if defined(REVOLTOSD)
113 /*----------OSD Config--------*/
115 #define MAX7456_SPI_INSTANCE SPI2
116 #define MAX7456_SPI_CS_PIN PD2
121 /*----------Uart Config--------*/
123 #define UART1_RX_PIN PA10
124 #define UART1_TX_PIN PA9
127 #define UART3_RX_PIN PB11
128 #define UART3_TX_PIN PB10
131 #define UART4_RX_PIN PA1
132 #define UART4_TX_PIN PA0
135 #define UART6_RX_PIN PC7
136 #define UART6_TX_PIN PC6
138 #define USE_SOFTSERIAL1
139 #define USE_SOFTSERIAL2
141 #define SERIAL_PORT_COUNT 7 //VCP, USART1, USART3, UART4, USART6, SOFTSERIAL x 2
143 #define USE_ESCSERIAL
144 #define ESCSERIAL_TIMER_TX_PIN PC6 // UART 6
146 /*----------ADC Config--------*/
149 #define CURRENT_METER_ADC_PIN PC1
150 #define VBAT_ADC_PIN PC2
153 #define USE_USB_DETECT
154 #define USB_DETECT_PIN PC5
157 #define TARGET_IO_PORTA 0xffff
158 #define TARGET_IO_PORTB 0xffff
159 #define TARGET_IO_PORTC 0xffff
160 #define TARGET_IO_PORTD (BIT(2))
162 #define USABLE_TIMER_CHANNEL_COUNT 6
163 #define USED_TIMERS ( TIM_N(2) | TIM_N(4) | TIM_N(8) | TIM_N(11) )