|
| 1 | +/* |
| 2 | + * This file is part of INAV. |
| 3 | + * |
| 4 | + * INAV 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. |
| 8 | + * |
| 9 | + * INAV 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. |
| 13 | + * |
| 14 | + * You should have received a copy of the GNU General Public License |
| 15 | + * along with INAV. If not, see <http://www.gnu.org/licenses/>. |
| 16 | + */ |
| 17 | + |
| 18 | +#pragma once |
| 19 | + |
| 20 | +#define TARGET_BOARD_IDENTIFIER "DAK7" |
| 21 | +#define USBD_PRODUCT_STRING "DAKEFPV H743" |
| 22 | + |
| 23 | +#define LED0 PD10 |
| 24 | +#define LED1 PD11 |
| 25 | +#define LED2 PA8 |
| 26 | + |
| 27 | +#define BEEPER PC2 |
| 28 | +#define BEEPER_INVERTED |
| 29 | + |
| 30 | +// Buses |
| 31 | +#define USE_SPI |
| 32 | +#define USE_SPI_DEVICE_1 |
| 33 | + |
| 34 | +#define SPI1_SCK_PIN PA5 |
| 35 | +#define SPI1_MISO_PIN PA6 |
| 36 | +#define SPI1_MOSI_PIN PA7 |
| 37 | + |
| 38 | +#define USE_SPI_DEVICE_2 |
| 39 | +#define SPI2_SCK_PIN PB13 |
| 40 | +#define SPI2_MISO_PIN PB14 |
| 41 | +#define SPI2_MOSI_PIN PB15 |
| 42 | + |
| 43 | +#define USE_SPI_DEVICE_3 |
| 44 | +#define SPI3_SCK_PIN PC10 |
| 45 | +#define SPI3_MISO_PIN PC11 |
| 46 | +#define SPI3_MOSI_PIN PC12 |
| 47 | + |
| 48 | +#define USE_SPI_DEVICE_4 |
| 49 | +#define SPI4_SCK_PIN PE12 |
| 50 | +#define SPI4_MISO_PIN PE13 |
| 51 | +#define SPI4_MOSI_PIN PE14 |
| 52 | + |
| 53 | +#define USE_I2C |
| 54 | +#define USE_I2C_DEVICE_2 |
| 55 | +#define I2C2_SCL PB10 |
| 56 | +#define I2C2_SDA PB11 |
| 57 | + |
| 58 | +#define DEFAULT_I2C_BUS BUS_I2C2 |
| 59 | + |
| 60 | +// GYRO |
| 61 | +#define USE_DUAL_GYRO |
| 62 | +#define USE_TARGET_IMU_HARDWARE_DESCRIPTORS // Don't use common busdev descriptors for IMU |
| 63 | +#define USE_IMU_MPU6500 |
| 64 | +#define USE_IMU_MPU6000 |
| 65 | + |
| 66 | +#define USE_IMU_ICM42605 |
| 67 | +#define USE_IMU_BMI270 |
| 68 | + |
| 69 | + |
| 70 | +// Enable dual gyro mode |
| 71 | +#define USE_DUAL_GYRO |
| 72 | + |
| 73 | +// Primary IMU options |
| 74 | +#define IMU_1_CS_PIN PA4 |
| 75 | +#define IMU_1_SPI_BUS BUS_SPI1 |
| 76 | +#define IMU_1_ALIGN CW0_DEG |
| 77 | + |
| 78 | +// Secondary IMU options |
| 79 | +#define IMU_2_CS_PIN PB1 |
| 80 | +#define IMU_2_SPI_BUS BUS_SPI1 |
| 81 | +#define IMU_2_ALIGN CW180_DEG |
| 82 | + |
| 83 | + |
| 84 | +// M25P256 flash |
| 85 | +#define USE_FLASHFS |
| 86 | +#define USE_FLASH_M25P16 |
| 87 | + |
| 88 | +#define M25P16_SPI_BUS BUS_SPI3 |
| 89 | +#define M25P16_CS_PIN PA15 |
| 90 | + |
| 91 | +#define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT |
| 92 | + |
| 93 | +// OSD |
| 94 | +#define USE_MAX7456 |
| 95 | +#define MAX7456_SPI_BUS BUS_SPI2 |
| 96 | +#define MAX7456_CS_PIN PB12 |
| 97 | + |
| 98 | +// CAMERA_CONTROL |
| 99 | +#define CAMERA_CONTROL_PIN PB8 |
| 100 | + |
| 101 | +// Serial ports |
| 102 | +#define USE_VCP |
| 103 | + |
| 104 | +#define USE_UART1 |
| 105 | +#define USE_UART2 |
| 106 | +#define USE_UART3 |
| 107 | +#define USE_UART4 |
| 108 | +#define USE_UART5 |
| 109 | +#define USE_UART6 |
| 110 | +#define USE_UART7 |
| 111 | +#define USE_UART8 |
| 112 | +#define UART1_TX_PIN PA9 |
| 113 | +#define UART1_RX_PIN PA10 |
| 114 | +#define UART2_TX_PIN PD5 |
| 115 | +#define UART2_RX_PIN PD6 |
| 116 | +#define UART3_TX_PIN PD8 |
| 117 | +#define UART3_RX_PIN PD9 |
| 118 | +#define UART4_TX_PIN PD1 |
| 119 | +#define UART4_RX_PIN PD0 |
| 120 | +#define UART5_TX_PIN PB6 |
| 121 | +#define UART5_RX_PIN PB5 |
| 122 | +#define UART6_TX_PIN PC6 |
| 123 | +#define UART6_RX_PIN PC7 |
| 124 | +#define UART7_TX_PIN PE8 |
| 125 | +#define UART7_RX_PIN PE7 |
| 126 | +#define UART8_TX_PIN PE1 |
| 127 | +#define UART8_RX_PIN PE0 |
| 128 | + |
| 129 | +#define SERIAL_PORT_COUNT 9 |
| 130 | + |
| 131 | +#define DEFAULT_RX_TYPE RX_TYPE_SERIAL |
| 132 | +#define SERIALRX_PROVIDER SERIALRX_CRSF |
| 133 | +#define SERIALRX_UART SERIAL_PORT_USART5 |
| 134 | +#define GPS_UART SERIAL_PORT_USART1 |
| 135 | + |
| 136 | +//Baro |
| 137 | +#define USE_BARO |
| 138 | +#define USE_BARO_BMP280 |
| 139 | +#define USE_BARO_DPS310 |
| 140 | +#define BARO_I2C_BUS DEFAULT_I2C_BUS |
| 141 | + |
| 142 | +// Mag |
| 143 | +#define USE_MAG |
| 144 | +#define MAG_I2C_BUS DEFAULT_I2C_BUS |
| 145 | +#define USE_MAG_ALL |
| 146 | + |
| 147 | +#define TEMPERATURE_I2C_BUS DEFAULT_I2C_BUS |
| 148 | + |
| 149 | +#define USE_RANGEFINDER |
| 150 | +#define USE_RANGEFINDER_MSP |
| 151 | +#define RANGEFINDER_I2C_BUS DEFAULT_I2C_BUS |
| 152 | + |
| 153 | +// unkonw |
| 154 | +#define PITOT_I2C_BUS DEFAULT_I2C_BUS |
| 155 | + |
| 156 | + |
| 157 | +// ADC |
| 158 | +#define USE_ADC |
| 159 | +#define ADC_INSTANCE ADC1 |
| 160 | +#define ADC_CHANNEL_1_PIN PC1 |
| 161 | +#define VBAT_ADC_CHANNEL ADC_CHN_1 |
| 162 | +#define ADC_CHANNEL_2_PIN PC0 |
| 163 | +#define CURRENT_METER_ADC_CHANNEL ADC_CHN_2 |
| 164 | +#define ADC_CHANNEL_3_PIN PC5 |
| 165 | +#define RSSI_ADC_CHANNEL ADC_CHN_3 |
| 166 | + |
| 167 | +// Additional ADC settings |
| 168 | +// #define ADC1_DMA_OPT 9 |
| 169 | +#define ADC1_DMA_STREAM DMA2_Stream3 |
| 170 | +#define VBAT_SCALE_DEFAULT 1600 |
| 171 | + |
| 172 | + |
| 173 | +#define USE_LED_STRIP |
| 174 | +#define WS2811_PIN PE9 |
| 175 | + |
| 176 | +#define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_CURRENT_METER | FEATURE_VBAT | FEATURE_TELEMETRY | FEATURE_LED_STRIP | FEATURE_GPS) |
| 177 | + |
| 178 | +#define USE_SERIAL_4WAY_BLHELI_INTERFACE |
| 179 | + |
| 180 | +#define TARGET_IO_PORTA 0xffff |
| 181 | +#define TARGET_IO_PORTB 0xffff |
| 182 | +#define TARGET_IO_PORTC 0xffff |
| 183 | +#define TARGET_IO_PORTD 0xffff |
| 184 | +#define TARGET_IO_PORTE 0xffff |
| 185 | + |
| 186 | +#define USE_DSHOT |
| 187 | +#define USE_DSHOT_DMAR |
| 188 | +#define USE_ESC_SENSOR |
| 189 | + |
| 190 | +#define MAX_PWM_OUTPUT_PORTS 12 |
| 191 | + |
| 192 | +// PINIO |
| 193 | +#define USE_PINIO |
| 194 | +#define USE_PINIOBOX |
| 195 | +#define PINIO1_PIN PE2 |
| 196 | +#define PINIO2_PIN PE3 |
| 197 | +#define PINIO3_PIN PE4 |
| 198 | +#define PINIO1_FLAGS PINIO_FLAGS_INVERTED |
0 commit comments