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 "ZEF7V2"
22 #define USBD_PRODUCT_STRING "ZEEZF7V2"
24 #define TARGET_BOARD_IDENTIFIER "ZEF7"
25 #define USBD_PRODUCT_STRING "ZEEZF7"
32 #define BEEPER_INVERTED
34 // *************** Gyro & ACC **********************
39 #define USE_SPI_DEVICE_1
40 #define SPI1_SCK_PIN PA5
41 #define SPI1_MISO_PIN PA6
42 #define SPI1_MOSI_PIN PA7
44 #define MPU6000_CS_PIN PA4
45 #define MPU6000_SPI_BUS BUS_SPI1
46 #define GYRO_INT_EXTI PC4
47 #define IMU_MPU6000_ALIGN CW0_DEG
51 #define USE_SPI_DEVICE_2
52 #define SPI2_SCK_PIN PB13
53 #define SPI2_MISO_PIN PB14
54 #define SPI2_MOSI_PIN PB15
56 #define MPU6000_CS_PIN PB12
57 #define MPU6000_SPI_BUS BUS_SPI2
58 #define GYRO_INT_EXTI PC9
60 #define IMU_MPU6000_ALIGN CW180_DEG
65 #define USE_MPU_DATA_READY_SIGNAL
66 #define USE_IMU_MPU6000
68 // *************** I2C/Baro/Mag *********************
73 #define USE_BARO_BMP280
74 #define BARO_I2C_BUS BUS_I2C1
76 #define USE_I2C_DEVICE_1
80 // External I2C Pads -- I2C3
81 #define USE_I2C_DEVICE_3
86 #define MAG_I2C_BUS BUS_I2C3
87 #define USE_MAG_HMC5883
88 #define USE_MAG_QMC5883
89 #define USE_MAG_IST8310
90 #define USE_MAG_IST8308
91 #define USE_MAG_MAG3110
92 #define USE_MAG_LIS3MDL
93 #define USE_MAG_AK8975
96 // Target has no I2C but can use MSP devices, such as those provided on Mateksys MQ8-CAN/MSP
97 // Which contains: GPS SAM-M8Q, Compass QMC5883L, Barometer DPS310
98 // See: http://www.mateksys.com/?portfolio=m8q-can
101 #define USE_BARO_DPS310
104 #define USE_MAG_QMC5883
108 // *************** Flash ****************************
112 #define USE_SPI_DEVICE_2
113 #define SPI2_SCK_PIN PB13
114 #define SPI2_MISO_PIN PC2
115 #define SPI2_MOSI_PIN PC3
117 #define M25P16_SPI_BUS BUS_SPI2
118 #define M25P16_CS_PIN PB12
122 #define USE_SPI_DEVICE_1
123 #define SPI1_SCK_PIN PA5
124 #define SPI1_MISO_PIN PA6
125 #define SPI1_MOSI_PIN PA7
127 #define M25P16_SPI_BUS BUS_SPI1
128 #define M25P16_CS_PIN PA4
133 #define USE_FLASH_M25P16
134 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
136 // *************** OSD *****************************
138 #define USE_SPI_DEVICE_3
139 #define SPI3_SCK_PIN PC10
140 #define SPI3_MISO_PIN PC11
141 #define SPI3_MOSI_PIN PB5
144 #define MAX7456_SPI_BUS BUS_SPI3
145 #define MAX7456_CS_PIN PA15
147 // *************** PINIO ***************************
152 #define PINIO1_PIN PB11 // VTX power switcher
156 // *************** UART *****************************
160 #define UART1_RX_PIN PA10
161 #define UART1_TX_PIN PA9
164 #define UART2_RX_PIN PA3
165 #define UART2_TX_PIN PA2
168 #define UART3_RX_PIN PB11
169 #define UART3_TX_PIN PB10
172 #define UART4_RX_PIN PA1
173 #define UART4_TX_PIN PA0
176 #define UART5_RX_PIN PD2
177 #define UART5_TX_PIN PC12
181 #define SERIAL_PORT_COUNT 6
186 #define UART6_RX_PIN PC7
187 #define UART6_TX_PIN PC6
189 #define SERIAL_PORT_COUNT 7
193 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
194 #define SERIALRX_PROVIDER SERIALRX_SBUS
195 #define SERIALRX_UART SERIAL_PORT_USART4
197 // *************** ADC *****************************
199 #define ADC_INSTANCE ADC1
200 #define ADC1_DMA_STREAM DMA2_Stream0
202 #define ADC_CHANNEL_1_PIN PC0
203 #define ADC_CHANNEL_2_PIN PC1
205 #define ADC_CHANNEL_1_PIN PC2
206 #define ADC_CHANNEL_2_PIN PC3
208 #define VBAT_ADC_CHANNEL ADC_CHN_1
209 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
211 #define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_CURRENT_METER | FEATURE_TELEMETRY | FEATURE_VBAT | FEATURE_OSD | FEATURE_LED_STRIP)
214 #define CURRENT_METER_SCALE 250
217 #define USE_LED_STRIP
218 #define WS2811_PIN PB0
220 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
222 #define TARGET_IO_PORTA 0xffff
223 #define TARGET_IO_PORTB 0xffff
224 #define TARGET_IO_PORTC 0xffff
225 #define TARGET_IO_PORTD (BIT(2))
228 #define MAX_PWM_OUTPUT_PORTS 8
230 #define MAX_PWM_OUTPUT_PORTS 4
233 #define USE_ESC_SENSOR