|
| 1 | +/* |
| 2 | + * This file is part of Betaflight. |
| 3 | + * |
| 4 | + * Betaflight is free software. You can redistribute this software |
| 5 | + * and/or modify this software under the terms of the GNU General |
| 6 | + * Public License as published by the Free Software Foundation, |
| 7 | + * either version 3 of the License, or (at your option) any later |
| 8 | + * version. |
| 9 | + * |
| 10 | + * Betaflight is distributed in the hope that it will be useful, |
| 11 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 | + * |
| 14 | + * See the GNU General Public License for more details. |
| 15 | + * |
| 16 | + * You should have received a copy of the GNU General Public |
| 17 | + * License along with this software. |
| 18 | + * |
| 19 | + * If not, see <http://www.gnu.org/licenses/>. |
| 20 | + */ |
| 21 | + |
| 22 | +#pragma once |
| 23 | + |
| 24 | +#define FC_TARGET_MCU STM32H743 |
| 25 | +#define BOARD_NAME AIRBOTRACINGSUPERH7 |
| 26 | +#define MANUFACTURER_ID AIRB |
| 27 | + |
| 28 | +#define USE_ACC |
| 29 | +#define USE_ACC_SPI_ICM42688P |
| 30 | +#define USE_GYRO |
| 31 | +#define USE_GYRO_SPI_ICM42688P |
| 32 | +#define USE_BARO |
| 33 | +#define USE_BARO_DPS310 |
| 34 | +#define USE_FLASH |
| 35 | +#define USE_FLASH_M25P16 |
| 36 | + |
| 37 | +#ifdef USE_OSD_SD |
| 38 | +#define USE_MSP_DISPLAYPORT_FONT |
| 39 | +#define MSP_DISPLAYPORT_UART SERIAL_PORT_UART4 |
| 40 | +#endif |
| 41 | + |
| 42 | +#ifdef USE_OSD_HD |
| 43 | +#define MSP_DISPLAYPORT_UART SERIAL_PORT_USART1 |
| 44 | +#endif |
| 45 | + |
| 46 | +#define BEEPER_PIN PC0 |
| 47 | +#define MOTOR1_PIN PB0 |
| 48 | +#define MOTOR2_PIN PB1 |
| 49 | +#define MOTOR3_PIN PE9 |
| 50 | +#define MOTOR4_PIN PE11 |
| 51 | +#define LED_STRIP_PIN PF6 |
| 52 | +#define UART1_TX_PIN PA9 |
| 53 | +#define UART2_TX_PIN PA2 |
| 54 | +#define UART3_TX_PIN PD8 |
| 55 | +#define UART4_TX_PIN PA0 |
| 56 | +#define UART5_TX_PIN PB6 |
| 57 | +#define UART6_TX_PIN PC6 |
| 58 | +#define UART7_TX_PIN PE8 |
| 59 | +#define UART8_TX_PIN PE1 |
| 60 | +#define UART1_RX_PIN PA10 |
| 61 | +#define UART2_RX_PIN PA3 |
| 62 | +#define UART3_RX_PIN PD9 |
| 63 | +#define UART4_RX_PIN PA1 |
| 64 | +#define UART5_RX_PIN PB5 |
| 65 | +#define UART6_RX_PIN PC7 |
| 66 | +#define UART7_RX_PIN PE7 |
| 67 | +#define UART8_RX_PIN PE0 |
| 68 | +#define I2C2_SCL_PIN PB10 |
| 69 | +#define I2C3_SCL_PIN PA8 |
| 70 | +#define I2C2_SDA_PIN PB11 |
| 71 | +#define I2C3_SDA_PIN PC9 |
| 72 | +#define LED0_PIN PG13 |
| 73 | +#define SPI1_SCK_PIN PA5 |
| 74 | +#define SPI2_SCK_PIN PB13 |
| 75 | +#define SPI3_SCK_PIN PC10 |
| 76 | +#define SPI4_SCK_PIN PE2 |
| 77 | +#define SPI1_SDI_PIN PA6 |
| 78 | +#define SPI2_SDI_PIN PB14 |
| 79 | +#define SPI3_SDI_PIN PC11 |
| 80 | +#define SPI4_SDI_PIN PE5 |
| 81 | +#define SPI1_SDO_PIN PA7 |
| 82 | +#define SPI2_SDO_PIN PB15 |
| 83 | +#define SPI3_SDO_PIN PC12 |
| 84 | +#define SPI4_SDO_PIN PE6 |
| 85 | +#define ADC_VBAT_PIN PC3 |
| 86 | +#define ADC_CURR_PIN PC2 |
| 87 | +#define PINIO1_PIN PA15 |
| 88 | +#define FLASH_CS_PIN PD10 |
| 89 | +#define GYRO_1_EXTI_PIN PB3 |
| 90 | +#define GYRO_1_CS_PIN PD7 |
| 91 | + |
| 92 | +#define TIMER_PIN_MAPPING TIMER_PIN_MAP( 0, LED_STRIP_PIN, 1, 0 ) \ |
| 93 | + TIMER_PIN_MAP( 1, MOTOR1_PIN, 2, 1 ) \ |
| 94 | + TIMER_PIN_MAP( 2, MOTOR2_PIN, 2, 2 ) \ |
| 95 | + TIMER_PIN_MAP( 3, MOTOR3_PIN, 1, 3 ) \ |
| 96 | + TIMER_PIN_MAP( 4, MOTOR4_PIN, 1, 4 ) |
| 97 | + |
| 98 | +#define ADC1_DMA_OPT 8 |
| 99 | +#define ADC3_DMA_OPT 9 |
| 100 | +#define TIMUP1_DMA_OPT 10 |
| 101 | +#define TIMUP3_DMA_OPT 11 |
| 102 | + |
| 103 | +#define BARO_I2C_INSTANCE I2CDEV_2 |
| 104 | +#define ADC_INSTANCE ADC1 |
| 105 | +#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH |
| 106 | +#define DEFAULT_DSHOT_BURST DSHOT_DMAR_OFF |
| 107 | +#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC |
| 108 | +#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC |
| 109 | +#define BEEPER_INVERTED |
| 110 | +#define PINIO1_BOX 40 |
| 111 | +#define PINIO1_CONFIG 129 |
| 112 | +#define BOX_USER1_NAME "VTX POWER" |
| 113 | +#define FLASH_SPI_INSTANCE SPI2 |
| 114 | +#define GYRO_1_SPI_INSTANCE SPI3 |
0 commit comments