Skip to content

Commit cc28b76

Browse files
LYNHQQot0tot
andauthored
Add HUMMINGBIRD_AIO255 (#806)
* add target `HUMMINGBIRD_AIO255` * Update configs/HUMMINGBIRD_AIO255_AT32F435/config.h Co-authored-by: ot0tot <[email protected]> * Update configs/HUMMINGBIRD_AIO255_AT32F435/config.h Co-authored-by: ot0tot <[email protected]> * Update configs/HUMMINGBIRD_AIO255_AT32F435/config.h Co-authored-by: ot0tot <[email protected]> * update manufacturer ID * update board name * Replace Manufacturer ID * Rename the target folder. --------- Co-authored-by: ot0tot <[email protected]>
1 parent 1796b0f commit cc28b76

File tree

1 file changed

+100
-0
lines changed

1 file changed

+100
-0
lines changed
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
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
26+
#define MANUFACTURER_ID HBRD
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_FLASH
34+
#define USE_FLASH_M25P16
35+
#define USE_FLASH_W25Q128FV
36+
#define USE_FLASH_W25N01G
37+
#define USE_MAX7456
38+
39+
#define BEEPER_PIN PB1
40+
#define MOTOR1_PIN PA6
41+
#define MOTOR2_PIN PA7
42+
#define MOTOR3_PIN PA10
43+
#define MOTOR4_PIN PA9
44+
#define LED0_PIN PH2
45+
#define LED_STRIP_PIN PA15
46+
#define UART4_TX_PIN PA0
47+
#define UART5_TX_PIN PB6
48+
#define UART6_TX_PIN PA4
49+
#define UART4_RX_PIN PA1
50+
#define UART5_RX_PIN PB5
51+
#define UART6_RX_PIN PA5
52+
#define UART7_RX_PIN PB3
53+
#define I2C2_SCL_PIN PB10
54+
#define I2C2_SDA_PIN PB11
55+
56+
#define SPI2_SCK_PIN PB13
57+
#define SPI3_SCK_PIN PB12
58+
#define SPI4_SCK_PIN PB7
59+
#define SPI2_SDI_PIN PB14
60+
#define SPI3_SDI_PIN PB4
61+
#define SPI4_SDI_PIN PB8
62+
#define SPI2_SDO_PIN PB15
63+
#define SPI3_SDO_PIN PB0
64+
#define SPI4_SDO_PIN PB9
65+
66+
#define ADC_VBAT_PIN PA2
67+
#define ADC_CURR_PIN PA3
68+
#define PINIO1_PIN PH3 //VTX 10V
69+
#define FLASH_CS_PIN PC15
70+
#define MAX7456_SPI_CS_PIN PA8
71+
#define GYRO_1_EXTI_PIN PC13
72+
#define GYRO_1_CS_PIN PC14
73+
74+
#define TIMER_PIN_MAPPING \
75+
TIMER_PIN_MAP( 0, LED_STRIP_PIN, 1, 0) \
76+
TIMER_PIN_MAP( 1, MOTOR1_PIN , 1, 1) \
77+
TIMER_PIN_MAP( 2, MOTOR2_PIN , 2, 2) \
78+
TIMER_PIN_MAP( 3, MOTOR3_PIN , 1, 3) \
79+
TIMER_PIN_MAP( 4, MOTOR4_PIN , 1, 4)
80+
81+
#define ADC_INSTANCE ADC1
82+
#define ADC1_DMA_OPT 12
83+
84+
#define BARO_I2C_INSTANCE I2CDEV_2
85+
#define MAG_I2C_INSTANCE I2CDEV_2
86+
#define FLASH_SPI_INSTANCE SPI3
87+
#define ESC_SENSOR_UART SERIAL_PORT_USART7
88+
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
89+
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_ON
90+
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
91+
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
92+
#define DEFAULT_VOLTAGE_METER_SCALE 107
93+
#define DEFAULT_CURRENT_METER_SCALE 300
94+
#define BEEPER_INVERTED
95+
#define SYSTEM_HSE_MHZ 8
96+
#define MAX7456_SPI_INSTANCE SPI2
97+
#define GYRO_1_SPI_INSTANCE SPI4
98+
99+
#define PINIO1_CONFIG 129
100+
#define PINIO1_BOX 40

0 commit comments

Comments
 (0)