2 * This file is part of Cleanflight.
4 * Cleanflight is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * Cleanflight is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with Cleanflight. If not, see <http://www.gnu.org/licenses/>.
20 #define TARGET_BOARD_IDENTIFIER "FYF3"
25 #define BEEPER_INVERTED
28 #define GYRO_INT_EXTI PC4
29 #define USE_MPU_DATA_READY_SIGNAL
30 #define ENSURE_MPU_DATA_READY_IS_LOW
32 #define USE_IMU_MPU6000
33 #define IMU_MPU6000_ALIGN CW180_DEG // changedkb 270
34 #define MPU6000_CS_PIN PA4
35 #define MPU6000_SPI_BUS BUS_SPI1
37 #define USE_IMU_MPU6500
38 #define IMU_MPU6500_ALIGN CW90_DEG // changedkb 270
39 #define MPU6500_CS_PIN PA4
40 #define MPU6500_SPI_BUS BUS_SPI1
42 #define USE_IMU_MPU9250
43 #define IMU_MPU9250_ALIGN CW90_DEG // changedkb 270
44 #define MPU9250_CS_PIN PA4
45 #define MPU9250_SPI_BUS BUS_SPI1
48 #define MAG_I2C_BUS BUS_I2C1
49 #define USE_MAG_MPU9250
50 #define USE_MAG_HMC5883
51 #define USE_MAG_MAG3110
52 #define USE_MAG_QMC5883
53 #define USE_MAG_LIS3MDL
56 #define BARO_I2C_BUS BUS_I2C1
57 #define USE_BARO_MS5611
58 #define USE_BARO_BMP280
61 #define USE_SPI_DEVICE_1
62 #define USE_SPI_DEVICE_2 // PB12,13,14,15 on AF5
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 #ifdef FURYF3_SPIFLASH
71 #undef BEEPER_INVERTED
77 #define USE_FLASH_M25P16
78 #define M25P16_CS_PIN PB12
79 #define M25P16_SPI_BUS BUS_SPI2
80 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
84 #define USE_SDCARD_SPI
86 #define SDCARD_DETECT_INVERTED
87 #define SDCARD_DETECT_PIN PB2
88 #define SDCARD_SPI_BUS BUS_SPI2
89 #define SDCARD_CS_PIN SPI2_NSS_PIN
96 #define USE_SOFTSERIAL1
97 #define SERIAL_PORT_COUNT 5
99 #define UART1_TX_PIN PA9
100 #define UART1_RX_PIN PA10
102 #define UART2_TX_PIN PA14
103 #define UART2_RX_PIN PA15
105 #define UART3_TX_PIN PB10 // PB10 (AF7)
106 #define UART3_RX_PIN PB11 // PB11 (AF7)
108 #define SOFTSERIAL_1_RX_PIN PB0
109 #define SOFTSERIAL_1_TX_PIN PB1
112 #define USE_I2C_DEVICE_1 // SDA (PB9/AF4), SCL (PB8/AF4)
117 #define BOARD_HAS_VOLTAGE_DIVIDER
119 #define ADC_INSTANCE ADC1
120 #define ADC_CHANNEL_1_PIN PA0
121 #define ADC_CHANNEL_2_PIN PA1
122 #define ADC_CHANNEL_3_PIN PA2
123 #define VBAT_ADC_CHANNEL ADC_CHN_1
124 #define RSSI_ADC_CHANNEL ADC_CHN_2
125 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_3
127 #define USE_LED_STRIP
128 #define WS2811_PIN PA8
130 #define USE_RANGEFINDER
131 #define USE_RANGEFINDER_HCSR04
132 #define RANGEFINDER_HCSR04_TRIGGER_PIN PB0 // RC_CH7 (PB0) - only 3.3v ( add a 1K Ohms resistor )
133 #define RANGEFINDER_HCSR04_ECHO_PIN PB1 // RC_CH8 (PB1) - only 3.3v ( add a 1K Ohms resistor )
135 #define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_BLACKBOX)
136 #define DEFAULT_RX_TYPE RX_TYPE_PPM
138 #define USE_SPEKTRUM_BIND
140 #define BIND_PIN PB11
142 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
144 // Number of available PWM outputs
145 #define MAX_PWM_OUTPUT_PORTS 6
147 // IO - stm32f303cc in 48pin package
148 #define TARGET_IO_PORTA 0xffff
149 #define TARGET_IO_PORTB 0xffff
150 #define TARGET_IO_PORTC 0xffff
151 #define TARGET_IO_PORTD 0xffff
152 #define TARGET_IO_PORTF (BIT(4))