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 #define TARGET_BOARD_IDENTIFIER "FY3O"
25 // #define USBD_PRODUCT_STRING "FuryF3OSD"
27 #define TARGET_BOARD_IDENTIFIER "FYF3"
28 // #define USBD_PRODUCT_STRING "FuryF3"
34 #define BEEPER_PIN PC15
35 #define BEEPER_INVERTED
39 #define GYRO_1_EXTI_PIN PA3
40 #define USE_MPU_DATA_READY_SIGNAL
41 #define ENSURE_MPU_DATA_READY_IS_LOW
43 #define GYRO_1_CS_PIN PA4
44 #define GYRO_1_SPI_INSTANCE SPI1
47 #define USE_GYRO_SPI_MPU6000
48 #define USE_GYRO_SPI_MPU6500
49 #define USE_GYRO_SPI_ICM20689
50 // MPU6000 and ICM20689 are CW180 aligned.
51 // MPU6500 is CW90 aligned, but can't handle this.
52 // Must be configured after flashing.
53 #define GYRO_1_ALIGN CW180_DEG
56 #define USE_ACC_SPI_MPU6000
57 #define USE_ACC_SPI_MPU6500
58 #define USE_ACC_SPI_ICM20689
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
70 // include the max7456 driver
72 #define MAX7456_SPI_INSTANCE SPI1
73 #define MAX7456_SPI_CS_PIN PC13
76 #define USE_FLASH_M25P16
77 #define FLASH_CS_PIN PB12
78 #define FLASH_SPI_INSTANCE SPI2
80 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
82 #define DEFAULT_FEATURES (FEATURE_OSD)
83 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
87 #define USE_SDCARD_SPI
88 #define SDCARD_DETECT_INVERTED
89 #define SDCARD_DETECT_PIN PB2
90 #define SDCARD_SPI_INSTANCE SPI2
91 #define SDCARD_SPI_CS_PIN SPI2_NSS_PIN
93 // Note, this is the same DMA channel as UART1_RX. Luckily we don't use DMA for USART Rx.
94 #define SDCARD_DMA_CHANNEL_TX DMA1_Channel5
96 // Performance logging for SD card operations:
97 // #define AFATFS_USE_INTROSPECTIVE_LOGGING
99 #define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
102 #define USE_BARO_MS5611
107 #define USE_I2C_DEVICE_1
108 #define I2C_DEVICE (I2CDEV_1) // SDA (PB9/AF4), SCL (PB8/AF4)
116 #define USE_SOFTSERIAL1
117 #define USE_SOFTSERIAL2
119 #define SERIAL_PORT_COUNT 6
121 #define SOFTSERIAL1_RX_PIN PB0
122 #define SOFTSERIAL1_TX_PIN PB1
124 #define USE_ESCSERIAL
125 #define ESCSERIAL_TIMER_TX_PIN PB3 // (HARDARE=0,PPM)
127 #define UART1_TX_PIN PA9
128 #define UART1_RX_PIN PA10
130 #define UART2_TX_PIN PA14
131 #define UART2_RX_PIN PA15
133 #define UART3_TX_PIN PB10 // PB10 (AF7)
134 #define UART3_RX_PIN PB11 // PB11 (AF7)
136 #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
138 #define ADC_INSTANCE ADC1
139 #define VBAT_ADC_PIN PA0
140 #define RSSI_ADC_PIN PA1
141 #define CURRENT_METER_ADC_PIN PA2
143 #define DEFAULT_RX_FEATURE FEATURE_RX_PPM
145 #define REMAP_TIM17_DMA
147 #define TARGET_IO_PORTA 0xffff
148 #define TARGET_IO_PORTB 0xffff
149 #define TARGET_IO_PORTC (BIT(13)|BIT(14)|BIT(15))
150 #define TARGET_IO_PORTF (BIT(0)|BIT(1)|BIT(3)|BIT(4))
152 #define USABLE_TIMER_CHANNEL_COUNT 8
153 #define USED_TIMERS (TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(4) | TIM_N(8) | TIM_N(16) | TIM_N(17))