Skip to content

Commit 4c8f9bf

Browse files
committed
Add GEPRCTAKER_H743_MINI
1 parent 0a79266 commit 4c8f9bf

File tree

1 file changed

+132
-0
lines changed

1 file changed

+132
-0
lines changed
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
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 GEPRCTAKER_H743_MINI
27+
28+
#define MANUFACTURER_ID GEPR
29+
30+
#define USE_ACC
31+
#define USE_ACC_SPI_ICM42688P
32+
#define USE_GYRO
33+
#define USE_GYRO_SPI_ICM42688P
34+
#define USE_BARO
35+
#define USE_BARO_BMP280
36+
#define USE_BARO_DPS310
37+
#define USE_BARO_MS5611
38+
#define USE_MAX7456
39+
#define USE_FLASH
40+
#define USE_FLASH_W25Q128FV
41+
#define USE_GYRO_CLKIN
42+
#define USE_TIMER_MAP_PRINT
43+
#define USE_MAG
44+
#define USE_MAG_QMC5883
45+
#define USE_MAG_IST8310
46+
47+
#define BEEPER_PIN PD2
48+
#define MOTOR1_PIN PC6
49+
#define MOTOR2_PIN PC7
50+
#define MOTOR3_PIN PC8
51+
#define MOTOR4_PIN PC9
52+
#define MOTOR5_PIN PE9
53+
#define MOTOR6_PIN PE11
54+
#define MOTOR7_PIN PE13
55+
#define MOTOR8_PIN PE14
56+
#define LED_STRIP_PIN PD12
57+
#define UART1_TX_PIN PA9
58+
#define UART2_TX_PIN PD5
59+
#define UART3_TX_PIN PD8
60+
#define UART4_TX_PIN PA0
61+
#define UART7_TX_PIN PE8
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 PA1
67+
#define UART5_RX_PIN PB5
68+
#define UART7_RX_PIN PE7
69+
#define UART8_RX_PIN PE0
70+
#define I2C1_SCL_PIN PB8
71+
#define I2C2_SCL_PIN PB10
72+
#define I2C1_SDA_PIN PB9
73+
#define I2C2_SDA_PIN PB11
74+
#define LED0_PIN PB7
75+
#define SPI1_SCK_PIN PA5
76+
#define SPI2_SCK_PIN PB13
77+
#define SPI3_SCK_PIN PC10
78+
#define SPI4_SCK_PIN PE2
79+
#define SPI1_SDI_PIN PA6
80+
#define SPI2_SDI_PIN PC2
81+
#define SPI3_SDI_PIN PC11
82+
#define SPI4_SDI_PIN PE5
83+
#define SPI1_SDO_PIN PA7
84+
#define SPI2_SDO_PIN PC3
85+
#define SPI3_SDO_PIN PC12
86+
#define SPI4_SDO_PIN PE6
87+
#define ADC_VBAT_PIN PC1
88+
#define ADC_CURR_PIN PC0
89+
#define FLASH_CS_PIN PA15
90+
#define PINIO1_PIN PC5
91+
#define PINIO2_PIN PC14
92+
#define MAX7456_SPI_CS_PIN PE4
93+
#define GYRO_1_EXTI_PIN PB2
94+
#define GYRO_1_CS_PIN PB12
95+
#define GYRO_1_CLKIN_PIN PB0
96+
97+
98+
#define TIMER_PIN_MAPPING \
99+
TIMER_PIN_MAP( 0, LED_STRIP_PIN, 1, 14) \
100+
TIMER_PIN_MAP( 1, MOTOR1_PIN, 2, 1) \
101+
TIMER_PIN_MAP( 2, MOTOR2_PIN, 2, 2) \
102+
TIMER_PIN_MAP( 3, MOTOR3_PIN, 2, 3) \
103+
TIMER_PIN_MAP( 4, MOTOR4_PIN, 2, 4) \
104+
TIMER_PIN_MAP( 5, MOTOR5_PIN, 1, 5) \
105+
TIMER_PIN_MAP( 6, MOTOR6_PIN, 1, 6) \
106+
TIMER_PIN_MAP( 7, MOTOR7_PIN, 1, 7) \
107+
TIMER_PIN_MAP( 8, MOTOR8_PIN, 1, 8) \
108+
TIMER_PIN_MAP( 9, GYRO_1_CLKIN_PIN, 2, -1 )
109+
110+
#define ADC1_DMA_OPT 9
111+
#define ADC3_DMA_OPT 10
112+
#define TIMUP3_DMA_OPT 11
113+
#define TIMUP4_DMA_OPT 12
114+
#define TIMUP8_DMA_OPT 13
115+
116+
#define MSP_DISPLAYPORT_UART SERIAL_PORT_USART1
117+
#define SERIALRX_UART SERIAL_PORT_USART2
118+
#define MSP_UART SERIAL_PORT_USART8
119+
#define MAG_I2C_INSTANCE I2CDEV_2
120+
#define BARO_I2C_INSTANCE I2CDEV_1
121+
122+
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
123+
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
124+
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
125+
#define DEFAULT_CURRENT_METER_SCALE 100
126+
#define BEEPER_INVERTED
127+
#define FLASH_SPI_INSTANCE SPI3
128+
#define PINIO1_CONFIG 129
129+
#define PINIO1_BOX 0
130+
#define PINIO2_BOX 40
131+
#define GYRO_1_SPI_INSTANCE SPI2
132+
#define MAX7456_SPI_INSTANCE SPI4

0 commit comments

Comments
 (0)