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 "RBFC"
24 #define USE_HARDWARE_REVISION_DETECTION
25 #define USE_TARGET_CONFIG
34 #define BEEPER_PIN PA12
35 #define BEEPER_INVERTED
39 #define GYRO_1_EXTI_PIN PC5
40 #define USE_MPU_DATA_READY_SIGNAL
41 #define ENSURE_MPU_DATA_READY_IS_LOW
44 #define GYRO_1_CS_PIN PB5
45 #define GYRO_1_SPI_INSTANCE SPI2
48 #define USE_GYRO_SPI_MPU6000
51 #define USE_ACC_SPI_MPU6000
53 #define GYRO_1_ALIGN CW90_DEG
58 #define USE_SOFTSERIAL1
59 #define USE_SOFTSERIAL2
61 #define SERIAL_PORT_COUNT 5
64 #define ESCSERIAL_TIMER_TX_PIN PA0 // (HARDARE=0,PPM)
66 #define UART1_TX_PIN PA9
67 #define UART1_RX_PIN PA10
69 #define UART2_TX_PIN PA2
70 #define UART2_RX_PIN PA3
72 #define UART3_TX_PIN PB10
73 #define UART3_RX_PIN PB11
75 #define SERIALRX_UART SERIAL_PORT_USART2
79 #define USE_SPI_DEVICE_2 // PB12,13,14,15 on AF5
81 #define SPI2_NSS_PIN PB12
82 #define SPI2_SCK_PIN PB13
83 #define SPI2_MISO_PIN PB14
84 #define SPI2_MOSI_PIN PB15
87 #define MAX7456_SPI_INSTANCE SPI2
88 #define MAX7456_SPI_CS_PIN PA7
91 #define FLASH_CS_PIN PB12
92 #define FLASH_SPI_INSTANCE SPI2
93 #define FLASH_SPI_SHARED
95 #define USE_FLASH_M25P16
97 #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
99 #define ADC_INSTANCE ADC2
100 #define VBAT_ADC_PIN PA4
101 #define CURRENT_METER_ADC_PIN PA5
102 #define RSSI_ADC_PIN PA6
105 #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
106 #define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_RSSI_ADC | FEATURE_OSD)
108 // IO - stm32f303cc in 48pin package
109 #define TARGET_IO_PORTA 0xffff
110 #define TARGET_IO_PORTB 0xffff
111 #define TARGET_IO_PORTC (BIT(5))
112 #define TARGET_IO_PORTF (BIT(0)|BIT(1)|BIT(3)|BIT(4))
114 #if defined(USE_UART3_RX_DMA) && defined(USE_DSHOT)
115 #undef USE_UART3_RX_DMA
118 #define USABLE_TIMER_CHANNEL_COUNT 6
119 #define USED_TIMERS (TIM_N(1) | TIM_N(2)| TIM_N(3) | TIM_N(8) | TIM_N(17))