Skip to content

Commit 855c72f

Browse files
committed
Add AIRBRAINH743
1 parent c70a9c1 commit 855c72f

File tree

1 file changed

+123
-0
lines changed

1 file changed

+123
-0
lines changed

configs/AIRBRAINH743/config.h

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
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+
26+
#define BOARD_NAME AIRBRAINH743
27+
#define MANUFACTURER_ID GEUP
28+
29+
#define USE_GYRO
30+
#define USE_GYRO_SPI_ICM42688P
31+
#define USE_ACC
32+
#define USE_ACC_SPI_ICM42688P
33+
#define USE_GYRO_CLKIN
34+
#define GYRO_1_CLKIN_PIN PC7 // FSYNC
35+
#define GYRO_1_EXTI_PIN PC6 // IMU_INT
36+
#define GYRO_1_CS_PIN PA3
37+
#define USE_BARO
38+
#define USE_BARO_DPS310 //DPS368
39+
#define USE_FLASH
40+
#define USE_FLASH_W25N01G
41+
42+
#ifndef USE_MAG
43+
#define USE_MAG
44+
#endif
45+
46+
#define BEEPER_PIN PA15
47+
#define MOTOR1_PIN PE9
48+
#define MOTOR2_PIN PE11
49+
#define MOTOR3_PIN PE13
50+
#define MOTOR4_PIN PE14
51+
#define MOTOR5_PIN PB0
52+
#define MOTOR6_PIN PB1
53+
#define MOTOR7_PIN PB10
54+
#define MOTOR8_PIN PB11
55+
#define LED_STRIP_PIN PA2
56+
#define UART1_TX_PIN PA9
57+
#define UART2_TX_PIN PD5
58+
#define UART3_TX_PIN PD8
59+
#define UART4_TX_PIN PB9
60+
#define UART5_TX_PIN PB13
61+
#define UART7_TX_PIN PE8 //NC
62+
#define UART8_TX_PIN PE1
63+
#define UART1_RX_PIN PA10
64+
#define UART2_RX_PIN PD6
65+
#define UART3_RX_PIN PD9
66+
#define UART4_RX_PIN PB8
67+
#define UART5_RX_PIN PB12
68+
#define UART7_RX_PIN PE7
69+
#define UART8_RX_PIN PE0
70+
#define I2C1_SCL_PIN PB6
71+
#define I2C1_SDA_PIN PB7
72+
#define LED0_PIN PB15 // BLUE
73+
#define LED1_PIN PD11 // GREEN
74+
#define LED2_PIN PD15 // RED
75+
#define SPI1_SCK_PIN PA5 // IMU
76+
#define SPI2_SCK_PIN PD3 // FLASH
77+
#define SPI3_SCK_PIN PE12 // AUX SPI
78+
#define SPI1_SDI_PIN PA6
79+
#define SPI2_SDI_PIN PB14
80+
#define SPI3_SDI_PIN PE5
81+
#define SPI1_SDO_PIN PA7
82+
#define SPI2_SDO_PIN PC3
83+
#define SPI3_SDO_PIN PE6
84+
#define ADC_VBAT_PIN PC4
85+
#define ADC_CURR_PIN PC5
86+
#define PINIO2_PIN PB3 // USER2
87+
#define FLASH_CS_PIN PD4
88+
89+
90+
#define TIMER_PIN_MAPPING \
91+
TIMER_PIN_MAP(0, PE9, 1, 0) \
92+
TIMER_PIN_MAP(1, PE11, 1, 1) \
93+
TIMER_PIN_MAP(2, PE13, 1, 2) \
94+
TIMER_PIN_MAP(3, PE14, 1, 3) \
95+
TIMER_PIN_MAP(4, PB0, 2, 4) \
96+
TIMER_PIN_MAP(5, PB1, 1, 5) \
97+
TIMER_PIN_MAP(6, PB10, 1, 6) \
98+
TIMER_PIN_MAP(7, PB11, 1, 7) \
99+
TIMER_PIN_MAP(8, PA2, 2, 8) \
100+
TIMER_PIN_MAP(9, PC7, 2, -1)
101+
102+
#define ADC1_DMA_OPT 9
103+
#define ADC2_DMA_OPT 10
104+
#define ADC3_DMA_OPT 11
105+
#define TIMUP1_DMA_OPT 12
106+
#define TIMUP2_DMA_OPT 13
107+
#define TIMUP3_DMA_OPT 14
108+
109+
#define MAG_I2C_INSTANCE I2CDEV_1
110+
#define BARO_I2C_INSTANCE I2CDEV_1
111+
112+
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
113+
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
114+
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
115+
#define DEFAULT_CURRENT_METER_SCALE 99
116+
#define BEEPER_INVERTED
117+
#define PINIO1_CONFIG 129
118+
#define PINIO1_BOX 40
119+
#define PINIO2_BOX 41
120+
#define GYRO_1_SPI_INSTANCE SPI1
121+
#define GYRO_1_ALIGN CW90_DEG
122+
#define FLASH_SPI_INSTANCE SPI2
123+
#define DEFAULT_VOLTAGE_METER_SCALE 150

0 commit comments

Comments
 (0)