Blackbox device type 'file' (SITL) considered working when file handler is available
[inav.git] / src / main / target / FLYWOOF7DUAL / target.h
blob1a236505214b32723f68dc79ae17323bd132b476
1 /*
2 * This file is part of INAV.
4 * INAV 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 * INAV 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 INAV. If not, see <http://www.gnu.org/licenses/>.
18 #define TARGET_BOARD_IDENTIFIER "FWF7"
19 #define USBD_PRODUCT_STRING "FLYWOOF7DUAL"
21 /*** Indicators ***/
22 #define LED0 PC15
23 #define BEEPER PC14
24 #define BEEPER_INVERTED
26 // We use dual IMU sensors, they have to be described in the target file
27 #define USE_TARGET_IMU_HARDWARE_DESCRIPTORS
29 #define USE_DUAL_GYRO
31 #define USE_IMU_MPU6000
32 #define USE_IMU_MPU6500
34 #define GYRO_1_SPI_BUS BUS_SPI1
35 #define GYRO_1_CS_PIN PA4
36 #define GYRO_1_ALIGN CW180_DEG_FLIP
38 #define GYRO_2_SPI_BUS BUS_SPI1
39 #define GYRO_2_CS_PIN PB2
40 #define GYRO_2_ALIGN CW270_DEG
42 /*** SPI/I2C bus ***/
43 #define USE_SPI
44 #define USE_SPI_DEVICE_1 // Gyro 1/2
45 #define SPI1_SCK_PIN PA5
46 #define SPI1_MISO_PIN PA6
47 #define SPI1_MOSI_PIN PA7
49 #define USE_SPI_DEVICE_2 // MAX7456
50 #define SPI2_SCK_PIN PB13
51 #define SPI2_MISO_PIN PB14
52 #define SPI2_MOSI_PIN PB15
54 #define USE_SPI_DEVICE_3 // FLASH
55 #define SPI3_SCK_PIN PC10
56 #define SPI3_MISO_PIN PC11
57 #define SPI3_MOSI_PIN PB5
59 #define USE_I2C
60 #define USE_I2C_DEVICE_1 // I2C pads
61 #define I2C1_SCL PB6
62 #define I2C1_SDA PB7
64 /*** Onboard flash ***/
65 #define USE_FLASHFS
66 #define USE_FLASH_M25P16
67 #define M25P16_CS_PIN PC13
68 #define M25P16_SPI_BUS BUS_SPI3
70 /*** OSD ***/
71 #define USE_MAX7456
72 #define MAX7456_CS_PIN PB12
73 #define MAX7456_SPI_BUS BUS_SPI2
75 /*** Serial ports ***/
76 #define USE_VCP
78 #define USE_UART1
79 #define UART1_TX_PIN PA9
80 #define UART1_RX_PIN PA10
82 #define USE_UART2
83 #define UART2_TX_PIN PA2
84 #define UART2_RX_PIN PA3
86 #define USE_UART3
87 #define UART3_TX_PIN PB10
88 #define UART3_RX_PIN PB11
90 #define USE_UART4
91 #define UART4_TX_PIN PA0
92 #define UART4_RX_PIN PA1
94 #define USE_UART5
95 #define UART5_TX_PIN PC12
96 #define UART5_RX_PIN PD2
98 #define USE_UART6
99 #define UART6_TX_PIN PC6
100 #define UART6_RX_PIN PC7
102 #define SERIAL_PORT_COUNT 7
104 /*** BARO & MAG ***/
105 #define USE_BARO
106 #define BARO_I2C_BUS BUS_I2C1
107 #define USE_BARO_BMP280
108 #define USE_BARO_MS5611
110 #define USE_MAG
111 #define MAG_I2C_BUS BUS_I2C1
112 #define USE_MAG_ALL
114 /*** ADC ***/
115 #define USE_ADC
116 #define ADC_CHANNEL_1_PIN PC0
117 #define ADC_CHANNEL_2_PIN PC1
118 #define ADC_CHANNEL_3_PIN PC2
120 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_1
121 #define VBAT_ADC_CHANNEL ADC_CHN_2
122 #define RSSI_ADC_CHANNEL ADC_CHN_3
125 /*** PINIO ***/
126 #define USE_PINIO
127 #define USE_PINIOBOX
128 #define PINIO1_PIN PB0
129 #define PINIO2_PIN PB9
131 /*** LED STRIP ***/
132 #define USE_LED_STRIP
133 #define WS2811_PIN PA8
135 /*** Default settings ***/
136 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
137 #define CURRENT_METER_SCALE_DEFAULT 170
138 #define SERIALRX_UART SERIAL_PORT_USART1
139 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
140 #define SERIALRX_PROVIDER SERIALRX_SBUS
142 /*** Timer/PWM output ***/
143 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
144 #define MAX_PWM_OUTPUT_PORTS 6
145 #define USE_DSHOT
146 #define USE_ESC_SENSOR
148 /*** Used pins ***/
149 #define TARGET_IO_PORTA 0xffff
150 #define TARGET_IO_PORTB 0xffff
151 #define TARGET_IO_PORTC 0xffff
152 #define TARGET_IO_PORTD (BIT(2))