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/>.
21 #define TARGET_BOARD_IDENTIFIER "FLYWOOF411"
22 #define USBD_PRODUCT_STRING "FlywooF411"
27 #define BEEPER_INVERTED
30 // *************** SPI **********************
32 #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_SPI_DEVICE_2
38 #define SPI2_SCK_PIN PB13
39 #define SPI2_MISO_PIN PB14
40 #define SPI2_MOSI_PIN PB15
43 // *************** SPI Gyro & ACC **********************
45 #define USE_IMU_MPU6000
46 #define MPU6000_CS_PIN PA4
47 #define MPU6000_SPI_BUS BUS_SPI1
48 #define IMU_MPU6000_ALIGN CW180_DEG
50 #define USE_IMU_ICM20689
51 #define ICM20689_CS_PIN PA4
52 #define ICM20689_SPI_BUS BUS_SPI1
53 #define IMU_ICM20689_ALIGN CW180_DEG
56 #define GYRO_INT_EXTI PB3
57 #define USE_MPU_DATA_READY_SIGNAL
59 // *************** Baro *****************************
62 #define USE_I2C_DEVICE_1
67 #define BARO_I2C_BUS BUS_I2C1
68 #define USE_BARO_BMP280
69 #define USE_BARO_MS5611
72 #define MAG_I2C_BUS BUS_I2C1
73 #define USE_MAG_HMC5883
74 #define USE_MAG_QMC5883
75 #define USE_MAG_IST8310
76 #define USE_MAG_IST8308
77 #define USE_MAG_MAG3110
78 #define USE_MAG_LIS3MDL
80 // *************** SPI OSD *****************************
83 #define MAX7456_SPI_BUS BUS_SPI2
84 #define MAX7456_CS_PIN PB12
86 // *************** SPI FLASH **************************
88 #define USE_FLASH_M25P16
89 #define M25P16_CS_PIN PB2
90 #define M25P16_SPI_BUS BUS_SPI2
91 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
93 // *************** UART *****************************
94 //#define USE_UART_INVERTER
99 #define UART1_TX_PIN PB6
100 #define UART1_RX_PIN PB7
103 #define UART2_TX_PIN PA2
104 #define UART2_RX_PIN PA3
106 // #define INVERTER_PIN_UART2 PC14
107 //#define INVERTER_PIN_UART2_RX PC14 // PC14 used as inverter select GPIO
109 #define USE_SOFTSERIAL1
110 #define SOFTSERIAL_1_TX_PIN PA2 // Workaround for softserial not initializing with only RX
111 #define SOFTSERIAL_1_RX_PIN PA2 // Backdoor timer on UART2_TX, used for ESC telemetry
113 #define SERIAL_PORT_COUNT 4 //VCP, USART1, USART2, SOFTSERIAL1
115 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
116 #define SERIALRX_PROVIDER SERIALRX_SBUS
117 #define SERIALRX_UART SERIAL_PORT_USART2
119 // *************** ADC *****************************
121 #define ADC_INSTANCE ADC1
122 #define ADC_CHANNEL_1_PIN PA1
123 #define ADC_CHANNEL_2_PIN PA0
124 #define ADC_CHANNEL_3_PIN PB1
126 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_1
127 #define VBAT_ADC_CHANNEL ADC_CHN_2
128 #define RSSI_ADC_CHANNEL ADC_CHN_3
130 // *************** LED2812 ************************
131 #define USE_LED_STRIP
132 #define WS2811_PIN PA15
133 #define WS2811_DMA_HANDLER_IDENTIFER DMA1_ST6_HANDLER
134 #define WS2811_DMA_STREAM DMA1_Stream6
135 #define WS2811_DMA_CHANNEL DMA_Channel_6
137 // *************** OTHERS *************************
138 #define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_OSD | FEATURE_VBAT | FEATURE_TELEMETRY | FEATURE_SOFTSERIAL)
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