Skip to content

Commit fb8a164

Browse files
Eike Ahmelsclaude
andcommitted
Add AXFL BBH743 target config
STM32H743 flight controller: ICM-42688-P on SPI4 with 32 kHz CLKIN, second LSM6DSK320X footprint on SPI3, SPL06 barometer (DPS310 driver) on I2C2, SPI flash blackbox on SPI2, MSP DisplayPort OSD on UART7, Bluetooth MSP on UART8, four motors on TIM1 / port E, two PINIO and camera control. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent 9f235a4 commit fb8a164

1 file changed

Lines changed: 138 additions & 0 deletions

File tree

‎configs/AXFL/BBH743/config.h‎

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
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 BBH743
27+
#define MANUFACTURER_ID AXFL
28+
29+
#define SYSTEM_HSE_MHZ 8
30+
31+
#define USE_ACC
32+
#define USE_GYRO
33+
// Gyro 1: ICM-42688-P on SPI4. Gyro 2: LSM6DSK320X footprint on SPI3, not fitted by default.
34+
#define USE_ACC_SPI_ICM42688P
35+
#define USE_GYRO_SPI_ICM42688P
36+
#define USE_ACCGYRO_LSM6DSK320X
37+
#define USE_ACCGYRO_ICM40609D
38+
#define USE_ACCGYRO_IIM42652
39+
#define USE_ACCGYRO_LSM6DSV16X
40+
41+
#define USE_BARO
42+
#define USE_BARO_DPS310
43+
44+
#define USE_FLASH
45+
#define USE_FLASH_W25Q128FV
46+
47+
// OSD: MSP DisplayPort on UART7. Bluetooth module on UART8.
48+
#define MSP_DISPLAYPORT_UART SERIAL_PORT_UART7
49+
#define MSP_UART SERIAL_PORT_UART8
50+
51+
// Passive buzzer, NPN driven, active high
52+
#define BEEPER_PIN PB0
53+
#define BEEPER_PWM_HZ 2500
54+
55+
#define MOTOR1_PIN PE13
56+
#define MOTOR2_PIN PE14
57+
#define MOTOR3_PIN PE9
58+
#define MOTOR4_PIN PE11
59+
60+
#define PINIO1_PIN PD12
61+
#define PINIO1_BOX 40
62+
#define PINIO2_PIN PC14
63+
#define PINIO2_BOX 41
64+
#define CAMERA_CONTROL_PIN PE10
65+
66+
#define UART1_TX_PIN PA9
67+
#define UART1_RX_PIN PA10
68+
#define UART2_TX_PIN PD5
69+
#define UART2_RX_PIN PD6
70+
#define UART3_TX_PIN PD8
71+
#define UART3_RX_PIN PD9
72+
#define UART4_TX_PIN PA0
73+
#define UART4_RX_PIN PA1
74+
#define UART5_TX_PIN PB6
75+
#define UART5_RX_PIN PB5
76+
#define UART6_TX_PIN PC6
77+
#define UART6_RX_PIN PC7
78+
#define UART7_TX_PIN PE8
79+
#define UART7_RX_PIN PE7
80+
#define UART8_TX_PIN PE1
81+
#define UART8_RX_PIN PE0
82+
83+
#define I2C2_SCL_PIN PB10
84+
#define I2C2_SDA_PIN PB11
85+
#define I2C3_SCL_PIN PA8
86+
#define I2C3_SDA_PIN PC9
87+
88+
#define LED0_PIN PD0
89+
90+
#define SPI2_SCK_PIN PB13
91+
#define SPI2_SDI_PIN PB14
92+
#define SPI2_SDO_PIN PB15
93+
#define SPI3_SCK_PIN PC10
94+
#define SPI3_SDI_PIN PC11
95+
#define SPI3_SDO_PIN PC12
96+
#define SPI4_SCK_PIN PE2
97+
#define SPI4_SDI_PIN PE5
98+
#define SPI4_SDO_PIN PE6
99+
100+
#define ADC_VBAT_PIN PC3
101+
#define ADC_CURR_PIN PC2
102+
103+
#define FLASH_SPI_INSTANCE SPI2
104+
#define FLASH_CS_PIN PB4
105+
106+
#define GYRO_1_SPI_INSTANCE SPI4
107+
#define GYRO_1_CS_PIN PE4
108+
#define GYRO_1_EXTI_PIN PC4
109+
#define GYRO_1_ALIGN CW0_DEG
110+
#define GYRO_2_SPI_INSTANCE SPI3
111+
#define GYRO_2_CS_PIN PB12
112+
#define GYRO_2_EXTI_PIN PB7
113+
#define GYRO_2_ALIGN CW0_DEG
114+
115+
#define USE_GYRO_CLKIN
116+
#define GYRO_1_CLKIN_PIN PA5
117+
118+
// Motors: TIM1 CH3/CH4/CH1/CH2. Beeper: TIM3_CH3. CLKIN: TIM2_CH1.
119+
#define TIMER_PIN_MAPPING \
120+
TIMER_PIN_MAP( 0, PE13, 1, 0) \
121+
TIMER_PIN_MAP( 1, PE14, 1, 1) \
122+
TIMER_PIN_MAP( 2, PE9, 1, 2) \
123+
TIMER_PIN_MAP( 3, PE11, 1, 3) \
124+
TIMER_PIN_MAP( 4, PB0, 2, -1) \
125+
TIMER_PIN_MAP( 5, PA5, 1, -1)
126+
127+
#define ADC1_DMA_OPT 8
128+
#define ADC3_DMA_OPT 9
129+
#define TIMUP1_DMA_OPT 10
130+
131+
#define BARO_I2C_INSTANCE I2CDEV_2
132+
#define MAG_I2C_INSTANCE I2CDEV_3
133+
134+
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
135+
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
136+
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
137+
#define DEFAULT_CURRENT_METER_SCALE 80
138+
#define DEFAULT_VOLTAGE_METER_SCALE 110

0 commit comments

Comments
 (0)