2 * This file is part of INAV.
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/>.
24 #define TARGET_BOARD_IDENTIFIER "FWF7"
25 #define USBD_PRODUCT_STRING "FLYWOOF745"
27 #define TARGET_BOARD_IDENTIFIER "FW7N"
28 #define USBD_PRODUCT_STRING "FLYWOOF745NANO"
34 #define BEEPER_INVERTED
37 #define USE_ESC_SENSOR
39 #define USE_MPU_DATA_READY_SIGNAL
42 #define USE_IMU_MPU6000
43 #define IMU_MPU6000_ALIGN CW270_DEG//
44 #define GYRO_INT_EXTI PE1//
45 #define MPU6000_CS_PIN SPI4_NSS_PIN//
46 #define MPU6000_SPI_BUS BUS_SPI4//
51 #define VBUS_SENSING_ENABLED
52 #define VBUS_SENSING_PIN PA8//
55 #define UART1_TX_PIN PA9//
56 #define UART1_RX_PIN PA10//
59 #define UART2_TX_PIN PD5//
60 #define UART2_RX_PIN PD6//
65 #define UART3_TX_PIN PB10//
66 #define UART3_RX_PIN PB11//
68 #define UART3_TX_PIN PD8//
69 #define UART3_RX_PIN PD9//
73 #define UART4_TX_PIN PA0//
74 #define UART4_RX_PIN PA1//
77 #define UART5_TX_PIN PC12//
78 #define UART5_RX_PIN PD2//
81 #define UART6_TX_PIN PC6//
82 #define UART6_RX_PIN PC7//
85 #define UART7_TX_PIN PE8//
86 #define UART7_RX_PIN PE7//
88 #define SERIAL_PORT_COUNT 8 //VCP,UART1,UART2,UART3,UART4,UART5,UART6,UART7
91 #define USE_SPI_DEVICE_1 //FLASH
92 #define USE_SPI_DEVICE_2 //OSD
93 #define USE_SPI_DEVICE_4 //ICM20689
95 #define SPI1_NSS_PIN PA4
96 #define SPI1_SCK_PIN PA5
97 #define SPI1_MISO_PIN PA6
98 #define SPI1_MOSI_PIN PA7
100 #define SPI2_NSS_PIN PB12
101 #define SPI2_SCK_PIN PB13
102 #define SPI2_MISO_PIN PB14
103 #define SPI2_MOSI_PIN PB15
105 #define SPI4_NSS_PIN PE4
106 #define SPI4_SCK_PIN PE2
107 #define SPI4_MISO_PIN PE5
108 #define SPI4_MOSI_PIN PE6
112 #define MAX7456_SPI_BUS BUS_SPI2
113 #define MAX7456_CS_PIN SPI2_NSS_PIN
115 #define M25P16_CS_PIN SPI1_NSS_PIN
116 #define M25P16_SPI_BUS BUS_SPI1
118 #define USE_FLASH_M25P16
119 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
122 #define USE_I2C_DEVICE_1
126 #ifdef FLYWOOF745NANO
127 #define USE_I2C_DEVICE_2
128 #define I2C2_SCL PB10
129 #define I2C2_SDA PB11
131 //External I2C bus is different than internal one
132 #define MAG_I2C_BUS BUS_I2C2
133 #define TEMPERATURE_I2C_BUS BUS_I2C2
134 #define RANGEFINDER_I2C_BUS BUS_I2C2
135 #define DEFAULT_I2C_BUS BUS_I2C2
139 //External I2C bus is the same as interal one
140 #define MAG_I2C_BUS BUS_I2C1
141 #define TEMPERATURE_I2C_BUS BUS_I2C1
142 #define RANGEFINDER_I2C_BUS BUS_I2C1
143 #define DEFAULT_I2C_BUS BUS_I2C1
148 #define USE_BARO_BMP280
149 #define BARO_I2C_BUS BUS_I2C1
152 #define USE_MAG_HMC5883
153 #define USE_MAG_QMC5883
154 #define USE_MAG_MAG3110
155 #define USE_MAG_IST8310
156 #define USE_MAG_IST8308
157 #define USE_MAG_LIS3MDL
160 #define ADC_CHANNEL_1_PIN PC2
161 #define ADC_CHANNEL_2_PIN PC3
162 #define ADC_CHANNEL_3_PIN PC5
164 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_1
165 #define VBAT_ADC_CHANNEL ADC_CHN_2
166 #define RSSI_ADC_CHANNEL ADC_CHN_3
168 #define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
170 #define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_TELEMETRY | FEATURE_OSD | FEATURE_VBAT | FEATURE_BLACKBOX)
171 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
172 #define SERIALRX_UART SERIAL_PORT_USART1
173 #define SERIALRX_PROVIDER SERIALRX_SBUS
175 #define USE_LED_STRIP
176 #define WS2811_PIN PD12 // //TIM4_CH1
178 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
180 #define TARGET_IO_PORTA 0xffff
181 #define TARGET_IO_PORTB 0xffff
182 #define TARGET_IO_PORTC 0xffff
183 #define TARGET_IO_PORTD 0xffff
184 #define TARGET_IO_PORTE 0xffff
186 #define MAX_PWM_OUTPUT_PORTS 8
188 // *************** PINIO ***************************
191 #define PINIO1_PIN PC0