2 * This file is part of Betaflight.
4 * Betaflight is free software. You can redistribute this software
5 * and/or modify this software under the terms of the GNU General
6 * Public License as published by the Free Software Foundation,
7 * either version 3 of the License, or (at your option) any later
10 * Betaflight is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 * See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public
17 * License along with this software.
19 * If not, see <http://www.gnu.org/licenses/>.
23 This file has been auto generated from unified-targets repo.
25 The auto generation is transitional only, please remove this comment once the file is edited.
28 #define FC_TARGET_MCU STM32F411
30 #define BOARD_NAME FLYWOOF411_5IN1_AIO
31 #define MANUFACTURER_ID FLWO
33 #define USE_ACC_SPI_MPU6000
34 #define USE_GYRO_SPI_MPU6000
35 #define USE_ACCGYRO_BMI270
39 #define BEEPER_PIN PC14
40 #define MOTOR1_PIN PA8
41 #define MOTOR2_PIN PB6
42 #define MOTOR3_PIN PB10
43 #define MOTOR4_PIN PB7
44 #define RX_PPM_PIN PA2
45 #define LED_STRIP_PIN PA0
46 #define UART1_TX_PIN PA9
47 #define UART2_TX_PIN PA2
48 #define UART1_RX_PIN PA10
49 #define UART2_RX_PIN PA3
51 #define SPI1_SCK_PIN PA5
52 #define SPI2_SCK_PIN PB13
53 #define SPI3_SCK_PIN PB3
54 #define SPI1_MISO_PIN PA6
55 #define SPI2_MISO_PIN PB14
56 #define SPI3_MISO_PIN PB4
57 #define SPI1_MOSI_PIN PA7
58 #define SPI2_MOSI_PIN PB15
59 #define SPI3_MOSI_PIN PB5
60 #define ADC_VBAT_PIN PB1
61 #define ADC_CURR_PIN PA1
62 #define MAX7456_SPI_CS_PIN PB12
63 #define RX_SPI_CS_PIN PA15
64 #define RX_SPI_EXTI_PIN PB0
65 #define RX_SPI_BIND_PIN PB8
66 #define RX_SPI_LED_PIN PB9
67 #define GYRO_1_EXTI_PIN PB2
68 #define GYRO_1_CS_PIN PA4
69 #define USB_DETECT_PIN PC15
71 #define TIMER_PIN_MAPPING \
72 TIMER_PIN_MAP( 0, PA2 , 3, -1) \
73 TIMER_PIN_MAP( 1, PA8 , 1, 1) \
74 TIMER_PIN_MAP( 2, PB3 , 1, 0) \
75 TIMER_PIN_MAP( 3, PB10, 1, 0) \
76 TIMER_PIN_MAP( 4, PA15, 1, 0) \
77 TIMER_PIN_MAP( 5, PB6 , 1, 0) \
78 TIMER_PIN_MAP( 6, PB7 , 1, 0) \
79 TIMER_PIN_MAP( 7, PB0 , 2, 0) \
80 TIMER_PIN_MAP( 8, PB4 , 1, 0) \
81 TIMER_PIN_MAP( 9, PA0 , 2, 0)
85 #define ADC1_DMA_OPT 0
87 //TODO #define MAG_BUSTYPE I2C
88 #define MAG_I2C_INSTANCE (I2CDEV_1)
89 //TODO #define BARO_BUSTYPE I2C
90 #define BARO_I2C_INSTANCE (I2CDEV_1)
91 //TODO #define RX_SPI_PROTOCOL FRSKY_D
92 #define RX_SPI_INSTANCE SPI3
93 //TODO #define BLACKBOX_DEVICE SPIFLASH
94 //TODO #define DSHOT_BURST ON
95 //TODO #define DSHOT_BIDIR ON
96 //TODO #define MOTOR_PWM_PROTOCOL DSHOT300
97 //TODO #define CURRENT_METER ADC
98 //TODO #define BATTERY_METER ADC
99 //TODO #define IBATA_SCALE 200
100 #define BEEPER_INVERTED
101 //TODO #define BEEPER_OD OFF
102 #define MAX7456_SPI_INSTANCE SPI2
103 //TODO #define FRSKY_SPI_TX_ID 64,120
104 //TODO #define FRSKY_SPI_OFFSET -103
106 #define GYRO_1_SPI_INSTANCE SPI1
107 #define GYRO_1_ALIGN CW0_DEG_FLIP