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 "FRF3"
24 #define USE_TARGET_CONFIG
28 #define BEEPER_PIN PC15
29 #define BEEPER_INVERTED
33 #define GYRO_1_EXTI_PIN PC13
34 #define USE_MPU_DATA_READY_SIGNAL
35 #define EXTI15_10_CALLBACK_HANDLER_COUNT 1 // MPU_INT, SDCardDetect
36 #define MPU_ADDRESS 0x69
39 #define GYRO_1_SPI_INSTANCE SPI2
40 #define GYRO_1_CS_PIN PB12
42 #define USE_GYRO_SPI_MPU6000
43 #define GYRO_1_ALIGN CW270_DEG
46 #define USE_ACC_SPI_MPU6000
49 #define USE_GYRO_MPU6050
50 #define GYRO_1_ALIGN CW270_DEG
53 #define USE_ACC_MPU6050
61 #define SERIAL_PORT_COUNT 4
62 #define UART1_TX_PIN PA9
63 #define UART1_RX_PIN PA10
65 #define UART2_TX_PIN PA14
66 #define UART2_RX_PIN PA15
68 #define UART3_TX_PIN PB10
69 #define UART3_RX_PIN PB11
72 #define USE_I2C_DEVICE_1
73 #define I2C_DEVICE (I2CDEV_1)
79 #define ESCSERIAL_TIMER_TX_PIN PB9 // (HARDARE=0)
82 // include the max7456 driver
84 #define MAX7456_SPI_INSTANCE SPI2
85 #define MAX7456_SPI_CS_PIN PB4
88 #define USE_SPI_DEVICE_2
89 #define USE_SPI_DEVICE_1
91 #define SPI2_NSS_PIN PB12
92 #define SPI2_SCK_PIN PB13
93 #define SPI2_MISO_PIN PB14
94 #define SPI2_MOSI_PIN PB15
96 #define SPI1_NSS_PIN PC14
97 #define SPI1_SCK_PIN PA5
98 #define SPI1_MISO_PIN PA6
99 #define SPI1_MOSI_PIN PA7
102 #define USE_SDCARD_SPI
103 #define SDCARD_DETECT_INVERTED
104 #define SDCARD_DETECT_PIN PB5
105 #define SDCARD_SPI_INSTANCE SPI1
106 #define SDCARD_SPI_CS_PIN SPI1_NSS_PIN
108 #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
109 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_NONE
112 #define VBAT_ADC_PIN PA4
113 #define CURRENT_METER_ADC_PIN PB2
114 #define ADC_INSTANCE ADC2
115 #define ADC24_DMA_REMAP
117 #define USE_TRANSPONDER
118 #define REDUCE_TRANSPONDER_CURRENT_DRAW_WHEN_USB_CABLE_PRESENT
120 #define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
122 #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
123 #define SERIALRX_PROVIDER SERIALRX_SBUS
125 #define DEFAULT_FEATURES ( FEATURE_TELEMETRY | FEATURE_LED_STRIP | FEATURE_OSD)
126 #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
127 #define SERIALRX_PROVIDER SERIALRX_SBUS
128 #define SERIALRX_UART SERIAL_PORT_USART2
130 #define TARGET_IO_PORTA 0xffff
131 #define TARGET_IO_PORTB 0xffff
132 #define TARGET_IO_PORTC (BIT(13)|BIT(14)|BIT(15))
133 #define TARGET_IO_PORTF (BIT(0)|BIT(1)|BIT(4))
135 #define USABLE_TIMER_CHANNEL_COUNT 9
136 #define USED_TIMERS (TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(8))