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 "S745"
25 #define USBD_PRODUCT_STRING "Betaflight STM32F745"
27 #define USE_I2C_DEVICE_1
28 #define USE_I2C_DEVICE_2
29 #define USE_I2C_DEVICE_3
30 #define USE_I2C_DEVICE_4
41 #define SERIAL_PORT_COUNT (UNIFIED_SERIAL_PORT_COUNT + 8)
43 #define USE_SPI_DEVICE_1
44 #define USE_SPI_DEVICE_2
45 #define USE_SPI_DEVICE_3
46 #define USE_SPI_DEVICE_4
48 #define TARGET_IO_PORTA 0xffff
49 #define TARGET_IO_PORTB 0xffff
50 #define TARGET_IO_PORTC 0xffff
51 #define TARGET_IO_PORTD 0xffff
52 #define TARGET_IO_PORTE 0xffff
53 #define TARGET_IO_PORTF 0xffff
56 #define I2C_FULL_RECONFIGURABILITY
60 #if !defined(CLOUD_BUILD)
68 #define USE_ACC_MPU6500
69 #define USE_GYRO_MPU6500
70 #define USE_ACC_SPI_MPU6000
71 #define USE_GYRO_SPI_MPU6000
72 #define USE_ACC_SPI_MPU6500
73 #define USE_GYRO_SPI_MPU6500
74 #define USE_ACC_SPI_ICM20689
75 #define USE_GYRO_SPI_ICM20689
76 #define USE_ACCGYRO_LSM6DSO
77 #define USE_ACCGYRO_BMI270
78 #define USE_GYRO_SPI_ICM42605
79 #define USE_GYRO_SPI_ICM42688P
80 #define USE_ACC_SPI_ICM42605
81 #define USE_ACC_SPI_ICM42688P
82 #define USE_ACC_MPU6050
83 #define USE_GYRO_MPU6050
84 #define USE_ACCGYRO_BMI160
87 #define USE_FLASH_TOOLS
88 #define USE_FLASH_M25P16
89 #define USE_FLASH_W25N01G // 1Gb NAND flash support
90 #define USE_FLASH_W25M // Stacked die support
91 #define USE_FLASH_W25M512 // 512Kb (256Kb x 2 stacked) NOR flash support
92 #define USE_FLASH_W25M02G // 2Gb (1Gb x 2 stacked) NAND flash support
93 #define USE_FLASH_W25Q128FV // 16MB Winbond 25Q128
97 #define USE_VTX_RTC6705
98 #define USE_VTX_RTC6705_SOFTSPI
100 #define USE_TRANSPONDER
102 #define USE_RANGEFINDER
103 #define USE_RANGEFINDER_HCSR04
104 #define USE_RANGEFINDER_TF
107 #define USE_RX_CC2500
109 #define USE_RX_EXPRESSLRS
110 #define RX_EXPRESSLRS_TIMER_INSTANCE TIM5
111 #define USE_RX_SX1280
112 #define USE_RX_SX127X
116 #endif // CLOUD_BUILD
119 #define USE_SDCARD_SPI
120 #define USE_SDCARD_SDIO
124 #define SPI_FULL_RECONFIGURABILITY
128 #define USE_SOFTSERIAL1
129 #define USE_SOFTSERIAL2
131 #define UNIFIED_SERIAL_PORT_COUNT 3
133 #define USE_USB_DETECT
135 #define USE_ESCSERIAL
139 #define USE_CUSTOM_DEFAULTS