|
| 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 | +#pragma once |
| 22 | + |
| 23 | +#define FC_TARGET_MCU AT32F435G |
| 24 | + |
| 25 | +#define BOARD_NAME HUMMINGBIRD_AIO255_AT32F435 |
| 26 | +#define MANUFACTURER_ID HUMMINGBIRD |
| 27 | + |
| 28 | +#define USE_ACC |
| 29 | +#define USE_ACC_SPI_ICM42688P |
| 30 | +#define USE_GYRO |
| 31 | +#define USE_GYRO_SPI_ICM42688P |
| 32 | + |
| 33 | +#define USE_GPS |
| 34 | +#define USE_MAG |
| 35 | +#define USE_BARO |
| 36 | +#define USE_FLASH |
| 37 | +#define USE_FLASH_M25P16 |
| 38 | +#define USE_FLASH_W25Q128FV |
| 39 | +#define USE_FLASH_W25N01G |
| 40 | +#define USE_MAX7456 |
| 41 | + |
| 42 | +#define BEEPER_PIN PB1 |
| 43 | +#define MOTOR1_PIN PA6 |
| 44 | +#define MOTOR2_PIN PA7 |
| 45 | +#define MOTOR3_PIN PA10 |
| 46 | +#define MOTOR4_PIN PA9 |
| 47 | +#define LED0_PIN PH2 |
| 48 | +#define LED_STRIP_PIN PA15 |
| 49 | +#define UART4_TX_PIN PA0 |
| 50 | +#define UART5_TX_PIN PB6 |
| 51 | +#define UART6_TX_PIN PA4 |
| 52 | +#define UART4_RX_PIN PA1 |
| 53 | +#define UART5_RX_PIN PB5 |
| 54 | +#define UART6_RX_PIN PA5 |
| 55 | +#define UART7_RX_PIN PB3 |
| 56 | +#define I2C2_SCL_PIN PB10 |
| 57 | +#define I2C2_SDA_PIN PB11 |
| 58 | + |
| 59 | +#define SPI2_SCK_PIN PB13 |
| 60 | +#define SPI3_SCK_PIN PB12 |
| 61 | +#define SPI4_SCK_PIN PB7 |
| 62 | +#define SPI2_SDI_PIN PB14 |
| 63 | +#define SPI3_SDI_PIN PB4 |
| 64 | +#define SPI4_SDI_PIN PB8 |
| 65 | +#define SPI2_SDO_PIN PB15 |
| 66 | +#define SPI3_SDO_PIN PB0 |
| 67 | +#define SPI4_SDO_PIN PB9 |
| 68 | + |
| 69 | +#define ADC_VBAT_PIN PA2 |
| 70 | +#define ADC_CURR_PIN PA3 |
| 71 | +#define PINIO1_PIN PH3 //VTX 10V |
| 72 | +#define FLASH_CS_PIN PC15 |
| 73 | +#define MAX7456_SPI_CS_PIN PA8 |
| 74 | +#define GYRO_1_EXTI_PIN PC13 |
| 75 | +#define GYRO_1_CS_PIN PC14 |
| 76 | + |
| 77 | +#define TIMER_PIN_MAPPING \ |
| 78 | + TIMER_PIN_MAP( 0, LED_STRIP_PIN, 1, 0) \ |
| 79 | + TIMER_PIN_MAP( 1, MOTOR1_PIN , 1, 1) \ |
| 80 | + TIMER_PIN_MAP( 2, MOTOR2_PIN , 1, 2) \ |
| 81 | + TIMER_PIN_MAP( 3, MOTOR3_PIN , 1, 3) \ |
| 82 | + TIMER_PIN_MAP( 4, MOTOR4_PIN , 1, 4) |
| 83 | + |
| 84 | +#define ADC_INSTANCE ADC1 |
| 85 | +#define ADC1_DMA_OPT 12 |
| 86 | + |
| 87 | +#define BARO_I2C_INSTANCE I2CDEV_2 |
| 88 | +#define MAG_I2C_INSTANCE I2CDEV_2 |
| 89 | +#define BARO_BUSTYPE BUS_TYPE_I2C |
| 90 | +#define MAG_BUSTYPE BUS_TYPE_I2C |
| 91 | +#define FLASH_SPI_INSTANCE SPI3 |
| 92 | +#define ESC_SENSOR_UART SERIAL_PORT_USART7 |
| 93 | +#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH |
| 94 | +#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_ON |
| 95 | +#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC |
| 96 | +#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC |
| 97 | +#define DEFAULT_VOLTAGE_METER_SCALE 107 |
| 98 | +#define DEFAULT_CURRENT_METER_SCALE 300 |
| 99 | +#define BEEPER_INVERTED |
| 100 | +#define SYSTEM_HSE_MHZ 8 |
| 101 | +#define MAX7456_SPI_INSTANCE SPI2 |
| 102 | +#define GYRO_1_SPI_INSTANCE SPI4 |
| 103 | + |
| 104 | +#define PINIO1_CONFIG 129 |
| 105 | +#define PINIO1_BOX 40 |
0 commit comments