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 "IFSD"
21 #define USBD_PRODUCT_STRING "IFLIGHT_SucceX_D"
27 #define BEEPER_INVERTED
29 // *************** SPI1 Gyro & ACC **********************
31 #define USE_SPI_DEVICE_1
33 #define SPI1_SCK_PIN PA5
34 #define SPI1_MISO_PIN PA6
35 #define SPI1_MOSI_PIN PA7
37 #define USE_IMU_MPU6000
38 #define IMU_MPU6000_ALIGN CW180_DEG
39 #define MPU6000_CS_PIN PA4
40 #define MPU6000_SPI_BUS BUS_SPI1
43 #define GYRO_INT_EXTI PA1
44 #define USE_MPU_DATA_READY_SIGNAL
46 // *************** SPI2 OSD *****************************
47 #define USE_SPI_DEVICE_2
48 #define SPI2_SCK_PIN PB13
49 #define SPI2_MISO_PIN PB14
50 #define SPI2_MOSI_PIN PB15
53 #define MAX7456_SPI_BUS BUS_SPI2
54 #define MAX7456_CS_PIN PB12
56 // *************** SPI3 FLASH **************************
57 #define USE_SPI_DEVICE_3
58 #define SPI3_SCK_PIN PB3
59 #define SPI3_MISO_PIN PB4
60 #define SPI3_MOSI_PIN PB5
62 #define M25P16_CS_PIN PA15
63 #define M25P16_SPI_BUS BUS_SPI3
66 #define USE_FLASH_M25P16
67 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
69 // *************** UART *****************************
71 #define VBUS_SENSING_PIN PC15
72 #define VBUS_SENSING_ENABLED
75 #define UART1_TX_PIN PA9
76 #define UART1_RX_PIN PA10
79 #define UART2_TX_PIN PA2
80 #define UART2_RX_PIN PA3
82 #define SERIAL_PORT_COUNT 3
84 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
85 #define SERIALRX_PROVIDER SERIALRX_SBUS
86 #define SERIALRX_UART SERIAL_PORT_USART2
88 // *************** I2C /Baro/Mag/Pitot ********************
90 #define USE_I2C_DEVICE_1
94 #define DEFAULT_I2C_BUS BUS_I2C1
97 #define BARO_I2C_BUS BUS_I2C1
98 #define USE_BARO_BMP280
99 #define USE_BARO_MS5611
100 #define USE_BARO_BMP085
103 #define MAG_I2C_BUS BUS_I2C1
104 #define USE_MAG_HMC5883
105 #define USE_MAG_QMC5883
106 #define USE_MAG_IST8310
107 #define USE_MAG_IST8308
108 #define USE_MAG_MAG3110
109 #define USE_MAG_LIS3MDL
110 #define USE_MAG_AK8975
112 #define PITOT_I2C_BUS BUS_I2C1
113 #define TEMPERATURE_I2C_BUS BUS_I2C1
114 #define BNO055_I2C_BUS BUS_I2C1
116 #define USE_RANGEFINDER
117 #define USE_RANGEFINDER_MSP
118 #define RANGEFINDER_I2C_BUS BUS_I2C1
120 // *************** ADC *****************************
122 #define ADC_INSTANCE ADC1
123 #define ADC1_DMA_STREAM DMA2_Stream0
125 #define ADC_CHANNEL_1_PIN PB0
126 #define ADC_CHANNEL_2_PIN PB1
128 #define VBAT_ADC_CHANNEL ADC_CHN_1
129 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
131 // *************** LED2812 ************************
132 #define USE_LED_STRIP
133 #define WS2811_PIN PA8
135 // *************** OTHERS *************************
136 #define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_OSD | FEATURE_CURRENT_METER | FEATURE_VBAT | FEATURE_TELEMETRY | FEATURE_BLACKBOX)
139 #define USE_ESC_SENSOR
140 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
142 #define TARGET_IO_PORTA 0xffff
143 #define TARGET_IO_PORTB 0xffff
144 #define TARGET_IO_PORTC 0xffff
145 #define TARGET_IO_PORTD (BIT(2))
147 #define MAX_PWM_OUTPUT_PORTS 4