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/>.
20 #define TARGET_BOARD_IDENTIFIER "DLF7"
21 #define USBD_PRODUCT_STRING "DALRCF722DUAL"
23 #define USE_HARDWARE_PREBOOT_SETUP
27 #define BEEPER_INVERTED
30 #define USE_IMU_MPU6000
31 #define IMU_MPU6000_ALIGN CW180_DEG
32 #define MPU6000_CS_PIN PB0
33 #define MPU6000_SPI_BUS BUS_SPI1
36 #define GYRO_INT_EXTI PB10
37 #define USE_MPU_DATA_READY_SIGNAL
42 #define UART1_TX_PIN PB6
43 #define UART1_RX_PIN PB7
46 #define UART2_TX_PIN PA2
47 #define UART2_RX_PIN PA3
50 #define UART3_TX_PIN PC10
51 #define UART3_RX_PIN PC11
54 #define UART4_TX_PIN PA0
55 #define UART4_RX_PIN PA1
58 #define UART5_TX_PIN PC12
59 #define UART5_RX_PIN PD2
60 #define SERIAL_PORT_COUNT 6
63 #define USE_I2C_DEVICE_1
69 #define BARO_I2C_BUS BUS_I2C1
70 #define USE_BARO_BMP280
71 #define USE_BARO_MS5611
72 #define USE_BARO_BMP085
76 #define MAG_I2C_BUS BUS_I2C1
77 #define USE_MAG_HMC5883
78 #define USE_MAG_QMC5883
79 #define USE_MAG_IST8310
80 #define USE_MAG_IST8308
81 #define USE_MAG_MAG3110
82 #define USE_MAG_LIS3MDL
84 #define TEMPERATURE_I2C_BUS BUS_I2C1
85 #define BNO055_I2C_BUS BUS_I2C1
86 #define PITOT_I2C_BUS BUS_I2C1
89 #define USE_SPI_DEVICE_1
90 #define SPI1_SCK_PIN PA5
91 #define SPI1_MISO_PIN PA6
92 #define SPI1_MOSI_PIN PA7
94 #define USE_SPI_DEVICE_2
95 #define SPI2_NSS_PIN PB12
96 #define SPI2_SCK_PIN PB13
97 #define SPI2_MISO_PIN PB14
98 #define SPI2_MOSI_PIN PB15
100 #define USE_SPI_DEVICE_3
101 #define SPI3_NSS_PIN NONE
102 #define SPI3_SCK_PIN PB3
103 #define SPI3_MISO_PIN PB4
104 #define SPI3_MOSI_PIN PB5
107 #define MAX7456_SPI_BUS BUS_SPI2
108 #define MAX7456_CS_PIN SPI2_NSS_PIN
110 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
111 #define M25P16_CS_PIN PB2
112 #define M25P16_SPI_BUS BUS_SPI3
114 #define USE_FLASH_M25P16
117 #define ADC_CHANNEL_1_PIN PC0
118 #define ADC_CHANNEL_2_PIN PC1
119 #define ADC_CHANNEL_3_PIN PA0
121 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_1
122 #define VBAT_ADC_CHANNEL ADC_CHN_2
123 #define RSSI_ADC_CHANNEL ADC_CHN_3
124 #define VBAT_SCALE_DEFAULT 1600
126 #define USE_LED_STRIP
127 #define WS2811_PIN PA15
128 #define WS2811_DMA_HANDLER_IDENTIFER DMA1_ST5_HANDLER
129 #define WS2811_DMA_STREAM DMA1_Stream5
130 #define WS2811_DMA_CHANNEL DMA_CHANNEL_3
132 #define DEFAULT_FEATURES (FEATURE_VBAT | FEATURE_OSD )
133 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
134 #define SERIALRX_PROVIDER SERIALRX_SBUS
135 #define SERIALRX_UART SERIAL_PORT_USART1
137 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
139 #define MAX_PWM_OUTPUT_PORTS 6
141 #define USE_ESC_SENSOR
143 #define TARGET_IO_PORTA 0xffff
144 #define TARGET_IO_PORTB 0xffff
145 #define TARGET_IO_PORTC 0xffff
146 #define TARGET_IO_PORTD (BIT(2))