Skip to content

Commit 4b9a515

Browse files
haslinghuisot0tot
andauthored
Add BROTHERHOBBYH743 (#753)
* Add BROTHERHOBBYH743 * Spaces * Fix TIMUP Co-authored-by: ot0tot <[email protected]> * Remove S1 + S2 as they conflict with M7 + M8 Co-authored-by: ot0tot <[email protected]> * Update timer pin map * Remove unused SPI3 definitions --------- Co-authored-by: ot0tot <[email protected]>
1 parent a2accfb commit 4b9a515

File tree

1 file changed

+157
-0
lines changed

1 file changed

+157
-0
lines changed

configs/BROTHERHOBBYH743/config.h

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

0 commit comments

Comments
 (0)