vtx: fix VTX_SETTINGS_POWER_COUNT and add dummy entries to saPowerNames
[inav.git] / src / main / target / DALRCF722DUAL / target.h
blob5c6dc15a3d74685367f9719e9a68f9a7bc39c559
1 /*
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/>.
18 #pragma once
20 #define TARGET_BOARD_IDENTIFIER "DLF7"
21 #define USBD_PRODUCT_STRING "DALRCF722DUAL"
23 #define USE_HARDWARE_PREBOOT_SETUP
25 #define LED0 PC14
26 #define BEEPER PC13
27 #define BEEPER_INVERTED
29 // MPU6000
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
35 #define USE_VCP
37 #define USE_UART1
38 #define UART1_TX_PIN PB6
39 #define UART1_RX_PIN PB7
41 #define USE_UART2
42 #define UART2_TX_PIN PA2
43 #define UART2_RX_PIN PA3
45 #define USE_UART3
46 #define UART3_TX_PIN PC10
47 #define UART3_RX_PIN PC11
49 #define USE_UART4
50 #define UART4_TX_PIN PA0
51 #define UART4_RX_PIN PA1
53 #define USE_UART5
54 #define UART5_TX_PIN PC12
55 #define UART5_RX_PIN PD2
56 #define SERIAL_PORT_COUNT 6
58 #define USE_I2C
59 #define USE_I2C_DEVICE_1
60 #define I2C1_SCL PB8
61 #define I2C1_SDA PB9
64 #define USE_BARO
65 #define BARO_I2C_BUS BUS_I2C1
66 #define USE_BARO_ALL
69 #define USE_MAG
70 #define MAG_I2C_BUS BUS_I2C1
71 #define USE_MAG_ALL
73 #define TEMPERATURE_I2C_BUS BUS_I2C1
74 #define PITOT_I2C_BUS BUS_I2C1
76 #define USE_SPI
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
94 #define USE_MAX7456
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
101 #define USE_FLASHFS
102 #define USE_FLASH_M25P16
104 #define USE_ADC
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
128 #define USE_DSHOT
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))