Update DPS310 driver to support SPL07-003
[inav.git] / src / main / target / DALRCF405 / target.h
blob6a9a5494ffe4894f163b7f821ad32adc577e3f59
1 /*
2 * This is free software: you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation, either version 3 of the License, or
5 * (at your option) any later version.
7 * This software is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this software. If not, see <http://www.gnu.org/licenses/>.
17 #pragma once
19 #define TARGET_BOARD_IDENTIFIER "DLF4"
20 #define USBD_PRODUCT_STRING "DALRCF405"
22 #define LED0 PC14
24 #define BEEPER PC13
25 #define BEEPER_INVERTED
27 // *************** Gyro & ACC **********************
28 #define USE_SPI
29 #define USE_SPI_DEVICE_1
31 #define SPI1_SCK_PIN PB3
32 #define SPI1_MISO_PIN PA6
33 #define SPI1_MOSI_PIN PA7
35 #define MPU6500_CS_PIN PA4
36 #define MPU6500_SPI_BUS BUS_SPI1
37 #define USE_IMU_MPU6500
38 #define IMU_MPU6500_ALIGN CW90_DEG
40 #define MPU6000_CS_PIN PA4
41 #define MPU6000_SPI_BUS BUS_SPI1
42 #define USE_IMU_MPU6000
43 #define IMU_MPU6000_ALIGN CW90_DEG
46 //FLASH
47 #define USE_SPI_DEVICE_2
48 #define SPI2_SCK_PIN PB13
49 #define SPI2_MISO_PIN PB14
50 #define SPI2_MOSI_PIN PC3
52 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
53 #define USE_FLASHFS
54 #define USE_FLASH_M25P16
55 #define M25P16_CS_PIN PB12
56 #define M25P16_SPI_BUS BUS_SPI2
58 //OSD
60 #define USE_SPI_DEVICE_3
61 #define SPI3_SCK_PIN PC10
62 #define SPI3_MISO_PIN PC11
63 #define SPI3_MOSI_PIN PB5
65 #define USE_MAX7456
66 #define MAX7456_SPI_BUS BUS_SPI3
67 #define MAX7456_CS_PIN PA15
69 //I2C
71 #define USE_I2C
72 #define USE_I2C_DEVICE_1
73 #define I2C1_SCL PB8
74 #define I2C1_SDA PB9
75 #define DEFAULT_I2C_BUS BUS_I2C1
77 #define USE_BARO
78 #define BARO_I2C_BUS DEFAULT_I2C_BUS
79 #define USE_BARO_BMP280
80 #define USE_BARO_MS5611
81 #define USE_BARO_BMP085
83 #define USE_MAG
84 #define MAG_I2C_BUS DEFAULT_I2C_BUS
85 #define USE_MAG_ALL
87 #define TEMPERATURE_I2C_BUS BUS_I2C1
89 #define USE_RANGEFINDER
90 #define RANGEFINDER_I2C_BUS DEFAULT_I2C_BUS
92 #define PITOT_I2C_BUS DEFAULT_I2C_BUS
94 //USART
95 #define USE_VCP
97 #define USE_UART1
98 #define UART1_RX_PIN PB7
99 #define UART1_TX_PIN PA9
101 #define USE_UART2
102 #define UART2_RX_PIN PA3
103 #define UART2_TX_PIN PA2
105 #define USE_UART3
106 #define UART3_RX_PIN PB11
107 #define UART3_TX_PIN PB10
109 #define USE_UART5
110 #define UART5_RX_PIN PD2
111 #define UART5_TX_PIN PC12
113 #define SERIAL_PORT_COUNT 5
115 //LED_STRIP
116 #define USE_LED_STRIP
117 #define WS2811_PIN PB6
119 //ADC
120 #define USE_ADC
121 #define ADC_INSTANCE ADC1
122 #define ADC1_DMA_STREAM DMA2_Stream0
123 #define ADC_CHANNEL_1_PIN PC2
124 #define ADC_CHANNEL_2_PIN PC1
125 #define ADC_CHANNEL_3_PIN PA0
126 #define VBAT_ADC_CHANNEL ADC_CHN_1
127 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
128 #define RSSI_ADC_CHANNEL ADC_CHN_3
130 #define DEFAULT_FEATURES (FEATURE_VBAT | FEATURE_OSD)
132 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
134 #define TARGET_IO_PORTA 0xffff
135 #define TARGET_IO_PORTB 0xffff
136 #define TARGET_IO_PORTC 0xffff
137 #define TARGET_IO_PORTD 0xffff
139 //TIMER
140 #define MAX_PWM_OUTPUT_PORTS 10
142 #define USE_DSHOT