Skip to content

Commit 213d845

Browse files
committed
Add BROTHERHOBBYH743
1 parent ea4b6bf commit 213d845

File tree

1 file changed

+164
-0
lines changed

1 file changed

+164
-0
lines changed

configs/BROTHERHOBBYH743/config.h

+164
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
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 BROTHERHOBBYH743
27+
#define MANUFACTURER_ID BROT
28+
29+
// LEDS
30+
#define BEEPER_PIN PA15
31+
#define BEEPER_INVERTED
32+
#define LED_STRIP_PIN PA8
33+
#define LED0_PIN PE9
34+
#define LED1_PIN PA7
35+
36+
// MOTORS & SERVOS
37+
#define MOTOR1_PIN PB0
38+
#define MOTOR2_PIN PB1
39+
#define MOTOR3_PIN PA0
40+
#define MOTOR4_PIN PA1
41+
#define MOTOR5_PIN PA2
42+
#define MOTOR6_PIN PA3
43+
#define MOTOR7_PIN PD12
44+
#define MOTOR8_PIN PD13
45+
46+
#define SERVO1_PIN PE5
47+
#define SERVO2_PIN PE6
48+
49+
// SPI
50+
#define SPI1_SCK_PIN PA5
51+
#define SPI1_SDI_PIN PA6
52+
#define SPI1_SDO_PIN PD7
53+
54+
#define SPI2_SCK_PIN PB13
55+
#define SPI2_SDI_PIN PB14
56+
#define SPI2_SDO_PIN PB15
57+
58+
#define SPI3_SCK_PIN PB3
59+
#define SPI3_SDI_PIN PB4
60+
#define SPI3_SDO_PIN PB5
61+
62+
#define SPI4_SCK_PIN PE12
63+
#define SPI4_SDI_PIN PE13
64+
#define SPI4_SDO_PIN PE14
65+
66+
// GYRO & ACC
67+
#define USE_ACC
68+
#define USE_GYRO
69+
#define USE_ACC_SPI_ICM42688P
70+
#define USE_GYRO_SPI_ICM42688P
71+
#define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH
72+
#define GYRO_1_EXTI_PIN PB2
73+
#define GYRO_1_CS_PIN PC15
74+
#define GYRO_1_SPI_INSTANCE SPI1
75+
#define GYRO_1_ALIGN CW90_DEG
76+
#define GYRO_2_EXTI_PIN PE15
77+
#define GYRO_2_CS_PIN PE11
78+
#define GYRO_2_SPI_INSTANCE SPI4
79+
#define GYRO_2_ALIGN CW0_DEG
80+
81+
// OSD
82+
#define USE_MAX7456
83+
#define MAX7456_SPI_CS_PIN PB12
84+
#define MAX7456_SPI_INSTANCE SPI2
85+
86+
// FLASH
87+
#define USE_SDCARD
88+
#define SDIO_CK_PIN PC12
89+
#define SDIO_CMD_PIN PD2
90+
#define SDIO_D0_PIN PC8
91+
#define SDIO_D1_PIN PC9
92+
#define SDIO_D2_PIN PC10
93+
#define SDIO_D3_PIN PC11
94+
#define SDIO_USE_4BIT 1
95+
#define SDIO_DEVICE SDIODEV_1
96+
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD
97+
98+
// BARO & MAG
99+
#define USE_BARO
100+
#define USE_BARO_DPS310
101+
#define I2C1_SCL_PIN PB6
102+
#define I2C1_SDA_PIN PB7
103+
#define I2C2_SCL_PIN PB10
104+
#define I2C2_SDA_PIN PB11
105+
#define BARO_I2C_INSTANCE I2CDEV_2
106+
#define MAG_I2C_INSTANCE I2CDEV_1
107+
108+
// UART & VCP
109+
#define UART1_TX_PIN PA9
110+
#define UART1_RX_PIN PA10
111+
#define UART2_TX_PIN PD5
112+
#define UART2_RX_PIN PD6
113+
#define UART3_TX_PIN PD8
114+
#define UART3_RX_PIN PD9
115+
#define UART4_TX_PIN PB9
116+
#define UART4_RX_PIN PB8
117+
#define UART6_TX_PIN PC6
118+
#define UART6_RX_PIN PC7
119+
#define UART7_TX_PIN PE8
120+
#define UART7_RX_PIN PE7
121+
#define UART8_TX_PIN PE1
122+
#define UART8_RX_PIN PE0
123+
#define USB_DETECT_PIN PE2
124+
125+
// ADC
126+
#define ADC_VBAT_PIN PC0
127+
#define ADC_RSSI_PIN PC5
128+
#define ADC_CURR_PIN PC1
129+
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
130+
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
131+
#define DEFAULT_CURRENT_METER_SCALE 210
132+
#define DEFAULT_VOLTAGE_METER_SCALE 110
133+
134+
// PINIO
135+
#define PINIO1_PIN PD10
136+
#define PINIO1_CONFIG 129
137+
#define PINIO1_BOX 40
138+
#define PINIO2_PIN PD11
139+
#define PINIO2_CONFIG 129
140+
#define PINIO2_BOX 41
141+
142+
// TIMERS & DMA
143+
#define TIMER_PIN_MAPPING \
144+
TIMER_PIN_MAP( 0, MOTOR1_PIN, 2, 0 ) \
145+
TIMER_PIN_MAP( 1, MOTOR2_PIN, 2, 1 ) \
146+
TIMER_PIN_MAP( 2, MOTOR3_PIN, 2, 2 ) \
147+
TIMER_PIN_MAP( 3, MOTOR4_PIN, 2, 3 ) \
148+
TIMER_PIN_MAP( 4, MOTOR5_PIN, 2, 4 ) \
149+
TIMER_PIN_MAP( 5, MOTOR6_PIN, 2, 5 ) \
150+
TIMER_PIN_MAP( 6, MOTOR7_PIN, 1, 6 ) \
151+
TIMER_PIN_MAP( 7, MOTOR8_PIN, 1, 7 ) \
152+
TIMER_PIN_MAP( 8, SERVO1_PIN, 1, -1 ) \
153+
TIMER_PIN_MAP( 9, SERVO2_PIN, 1, -1 ) \
154+
TIMER_PIN_MAP( 10, LED_STRIP_PIN, 1, 14 )
155+
156+
#define ADC1_DMA_OPT 8
157+
#define ADC3_DMA_OPT 9
158+
159+
#define TIMUP1_DMA_OPT 0
160+
#define TIMUP2_DMA_OPT 0
161+
#define TIMUP3_DMA_OPT 2
162+
#define TIMUP4_DMA_OPT 1
163+
#define TIMUP5_DMA_OPT 0
164+
#define TIMUP8_DMA_OPT 0

0 commit comments

Comments
 (0)