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 "SB73"
24 #define USBD_PRODUCT_STRING "SpeedyBee F745 AIO"
30 #define BEEPER_INVERTED
32 // *************** UART *****************************
35 // #define VBUS_SENSING_PIN PC15
36 // #define VBUS_SENSING_ENABLED
40 #define PINIO1_PIN PC4
41 #define PINIO1_FLAGS PINIO_FLAGS_INVERTED
45 #define UART1_RX_PIN PA10
46 #define UART1_TX_PIN PA9
49 #define UART2_RX_PIN PD6
50 #define UART2_TX_PIN PD5
53 #define UART3_RX_PIN PB11
54 #define UART3_TX_PIN PB10
57 #define UART4_RX_PIN PA1
58 #define UART4_TX_PIN PA0
61 #define UART6_RX_PIN PC7
62 #define UART6_TX_PIN PC6
64 #define SERIAL_PORT_COUNT 6
66 // *************** Gyro & ACC **********************
69 #define USE_SPI_DEVICE_4
70 #define SPI4_SCK_PIN PE2
71 #define SPI4_MISO_PIN PE5
72 #define SPI4_MOSI_PIN PE6
74 #define USE_IMU_MPU6000
75 #define IMU_MPU6000_ALIGN CW90_DEG
76 #define MPU6000_CS_PIN PE4
77 #define MPU6000_SPI_BUS BUS_SPI4
80 #define USE_IMU_BMI270
81 #define IMU_BMI270_ALIGN CW90_DEG
82 #define BMI270_SPI_BUS BUS_SPI4
83 #define BMI270_CS_PIN PE4
85 // *************** I2C(Baro & I2C) **************************
88 #define USE_I2C_DEVICE_1
94 #define USE_BARO_BMP280
95 #define USE_BARO_MS5611
96 #define USE_BARO_DPS310
97 #define USE_BARO_SPL06
98 #define BARO_I2C_BUS BUS_I2C1
102 #define MAG_I2C_BUS BUS_I2C1
103 #define USE_MAG_HMC5883
104 #define USE_MAG_QMC5883
105 #define USE_MAG_IST8310
106 #define USE_MAG_IST8308
107 #define USE_MAG_MAG3110
108 #define USE_MAG_LIS3MDL
110 // *************** SPI3 SD BLACKBOX*******************
111 #define USE_SPI_DEVICE_1
112 #define SPI1_SCK_PIN PA5
113 #define SPI1_MISO_PIN PA6
114 #define SPI1_MOSI_PIN PA7
117 #define USE_FLASH_M25P16
118 #define M25P16_SPI_BUS BUS_SPI1
119 #define M25P16_CS_PIN PA4
120 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
122 // *************** OSD *****************************
124 #define USE_SPI_DEVICE_2
125 #define SPI2_SCK_PIN PB13
126 #define SPI2_MISO_PIN PB14
127 #define SPI2_MOSI_PIN PB15
130 #define MAX7456_SPI_BUS BUS_SPI2
131 #define MAX7456_CS_PIN PB12
133 // *************** ADC *****************************
135 #define ADC_CHANNEL_1_PIN PC3
136 #define ADC_CHANNEL_2_PIN PC2
138 #define VBAT_ADC_CHANNEL ADC_CHN_1
139 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
141 // *************** LED *****************************
142 #define USE_LED_STRIP
143 #define WS2811_PIN PD12
145 // ********** Optiical Flow adn Lidar **************
146 #define USE_RANGEFINDER
147 #define USE_RANGEFINDER_MSP
149 #define USE_OPFLOW_MSP
151 #define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_CURRENT_METER | FEATURE_TELEMETRY | FEATURE_VBAT | FEATURE_OSD | FEATURE_BLACKBOX)
153 #define USE_ESC_SENSOR
154 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
156 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
157 #define SERIALRX_PROVIDER SERIALRX_SBUS
159 #define MAX_PWM_OUTPUT_PORTS 4
161 #define CURRENT_METER_SCALE 256
163 #define TARGET_IO_PORTA 0xffff
164 #define TARGET_IO_PORTB 0xffff
165 #define TARGET_IO_PORTC 0xffff
166 #define TARGET_IO_PORTD 0xffff
167 #define TARGET_IO_PORTE 0xffff