Blackbox device type 'file' (SITL) considered working when file handler is available
[inav.git] / src / main / target / FLYWOOF722PRO / target.h
blob3f11b44e3175b5baa9eec8562e7651a582462633
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 "FLYWOOF722PRO"
21 /*** Indicators ***/
22 #define LED0 PC15
23 #define USE_BEEPER
24 #define BEEPER PC14
25 #define BEEPER_INVERTED
27 /*** SPI/I2C bus ***/
28 #define USE_SPI
29 #define USE_SPI_DEVICE_1 // Gyro 1/2
30 #define SPI1_SCK_PIN PA5
31 #define SPI1_MISO_PIN PA6
32 #define SPI1_MOSI_PIN PA7
34 #define USE_TARGET_IMU_HARDWARE_DESCRIPTORS
36 #define USE_IMU_MPU6000
37 #define IMU_MPU6000_ALIGN CW0_DEG
38 #define MPU6000_SPI_BUS BUS_SPI1
39 #define MPU6000_CS_PIN PA4
41 #define USE_IMU_ICM42605
42 #define IMU_ICM42605_ALIGN CW270_DEG
43 #define ICM42605_SPI_BUS BUS_SPI1
44 #define ICM42605_CS_PIN PA4
46 #define USE_IMU_BMI270
47 #define IMU_BMI270_ALIGN CW180_DEG
48 #define BMI270_SPI_BUS BUS_SPI1
49 #define BMI270_CS_PIN PA4
52 #define USE_SPI_DEVICE_2 // MAX7456
53 #define SPI2_SCK_PIN PB13
54 #define SPI2_MISO_PIN PB14
55 #define SPI2_MOSI_PIN PB15
57 #define USE_SPI_DEVICE_3 // FLASH
58 #define SPI3_SCK_PIN PC10
59 #define SPI3_MISO_PIN PC11
60 #define SPI3_MOSI_PIN PB5
62 #define USE_I2C
63 #define USE_I2C_DEVICE_1 // I2C pads
64 #define I2C1_SCL PB8
65 #define I2C1_SDA PB9
67 /*** Onboard flash ***/
68 #define USE_FLASHFS
69 #define USE_FLASH_M25P16
70 #define M25P16_CS_PIN PC13
71 #define M25P16_SPI_BUS BUS_SPI3
73 /*** OSD ***/
74 #define USE_OSD
75 #define USE_MAX7456
76 #define MAX7456_CS_PIN PB12
77 #define MAX7456_SPI_BUS BUS_SPI2
79 /*** Serial ports ***/
80 #define USB_IO
81 #define USE_VCP
83 #define USE_UART1
84 #define UART1_TX_PIN PA9
85 #define UART1_RX_PIN PA10
87 #define USE_UART2
88 #define UART2_TX_PIN PA2
89 #define UART2_RX_PIN PA3
91 #define USE_UART3
92 #define UART3_TX_PIN PB10
93 #define UART3_RX_PIN PB11
95 #define USE_UART4
96 #define UART4_TX_PIN PA0
97 #define UART4_RX_PIN PA1
99 #define USE_UART5
100 #define UART5_TX_PIN PC12
101 #define UART5_RX_PIN PD2
103 #define USE_UART6
104 #define UART6_TX_PIN PC6
105 #define UART6_RX_PIN PC7
107 #define SERIAL_PORT_COUNT 7
109 /*** BARO & MAG ***/
110 #define USE_BARO
111 #define BARO_I2C_BUS BUS_I2C1
112 #define USE_BARO_BMP280
113 #define USE_BARO_MS5611
114 #define USE_BARO_DPS310
115 #define USE_BARO_SPL06
117 #define USE_MAG
118 #define MAG_I2C_BUS BUS_I2C1
119 #define USE_MAG_ALL
121 /*** ADC ***/
122 #define USE_ADC
123 #define ADC_CHANNEL_1_PIN PC0
124 #define ADC_CHANNEL_2_PIN PC1
125 #define ADC_CHANNEL_3_PIN PC2
127 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_1
128 #define VBAT_ADC_CHANNEL ADC_CHN_2
129 #define RSSI_ADC_CHANNEL ADC_CHN_3
132 /*** PINIO ***/
133 #define USE_PINIO
134 #define USE_PINIOBOX
135 #define PINIO1_PIN PB0
137 /*** LED STRIP ***/
138 #define USE_LED_STRIP
139 #define WS2811_PIN PA8
141 /*** Default settings ***/
142 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
143 #define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_TELEMETRY | FEATURE_CURRENT_METER | FEATURE_VBAT | FEATURE_TX_PROF_SEL | FEATURE_BLACKBOX)
144 #define CURRENT_METER_SCALE_DEFAULT 170
145 #define SERIALRX_UART SERIAL_PORT_USART1
146 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
147 #define SERIALRX_PROVIDER SERIALRX_SBUS
149 /*** Timer/PWM output ***/
150 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
151 #define MAX_PWM_OUTPUT_PORTS 8
152 #define USE_DSHOT
153 #define USE_ESC_SENSOR
155 /*** Used pins ***/
156 #define TARGET_IO_PORTA 0xffff
157 #define TARGET_IO_PORTB 0xffff
158 #define TARGET_IO_PORTC 0xffff
159 #define TARGET_IO_PORTD (BIT(2))