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
38 #define UART1_TX_PIN PB6
39 #define UART1_RX_PIN PB7
42 #define UART2_TX_PIN PA2
43 #define UART2_RX_PIN PA3
46 #define UART3_TX_PIN PC10
47 #define UART3_RX_PIN PC11
50 #define UART4_TX_PIN PA0
51 #define UART4_RX_PIN PA1
54 #define UART5_TX_PIN PC12
55 #define UART5_RX_PIN PD2
56 #define SERIAL_PORT_COUNT 6
59 #define USE_I2C_DEVICE_1
65 #define BARO_I2C_BUS BUS_I2C1
70 #define MAG_I2C_BUS BUS_I2C1
73 #define TEMPERATURE_I2C_BUS BUS_I2C1
74 #define PITOT_I2C_BUS BUS_I2C1
77 #define USE_SPI_DEVICE_1
78 #define SPI1_SCK_PIN PA5
79 #define SPI1_MISO_PIN PA6
80 #define SPI1_MOSI_PIN PA7
82 #define USE_SPI_DEVICE_2
83 #define SPI2_NSS_PIN PB12
84 #define SPI2_SCK_PIN PB13
85 #define SPI2_MISO_PIN PB14
86 #define SPI2_MOSI_PIN PB15
88 #define USE_SPI_DEVICE_3
89 #define SPI3_NSS_PIN NONE
90 #define SPI3_SCK_PIN PB3
91 #define SPI3_MISO_PIN PB4
92 #define SPI3_MOSI_PIN PB5
95 #define MAX7456_SPI_BUS BUS_SPI2
96 #define MAX7456_CS_PIN SPI2_NSS_PIN
98 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
99 #define M25P16_CS_PIN PB2
100 #define M25P16_SPI_BUS BUS_SPI3
102 #define USE_FLASH_M25P16
105 #define ADC_CHANNEL_1_PIN PC0
106 #define ADC_CHANNEL_2_PIN PC1
107 #define ADC_CHANNEL_3_PIN PA0
109 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_1
110 #define VBAT_ADC_CHANNEL ADC_CHN_2
111 #define RSSI_ADC_CHANNEL ADC_CHN_3
112 #define VBAT_SCALE_DEFAULT 1600
114 #define USE_LED_STRIP
115 #define WS2811_PIN PA15
116 #define WS2811_DMA_HANDLER_IDENTIFER DMA1_ST5_HANDLER
117 #define WS2811_DMA_STREAM DMA1_Stream5
118 #define WS2811_DMA_CHANNEL DMA_CHANNEL_3
120 #define DEFAULT_FEATURES (FEATURE_VBAT | FEATURE_OSD )
121 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
122 #define SERIALRX_PROVIDER SERIALRX_SBUS
123 #define SERIALRX_UART SERIAL_PORT_USART1
125 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
127 #define MAX_PWM_OUTPUT_PORTS 6
129 #define USE_ESC_SENSOR
131 #define TARGET_IO_PORTA 0xffff
132 #define TARGET_IO_PORTB 0xffff
133 #define TARGET_IO_PORTC 0xffff
134 #define TARGET_IO_PORTD (BIT(2))