Skip to content

Commit e37c196

Browse files
committed
Add BROTHERHOBBYH743
1 parent ea4b6bf commit e37c196

File tree

1 file changed

+168
-0
lines changed

1 file changed

+168
-0
lines changed

configs/BROTHERHOBBYH743/config.h

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

0 commit comments

Comments
 (0)