Skip to content

Commit 02572ab

Browse files
haslinghuisot0tot
andauthored
Add GEPRC_TAKER_H743MINI (#881)
* Add GEPRCTAKER_H743_MINI * Update configs/GEPRCTAKER_H743_MINI/config.h Co-authored-by: ot0tot <[email protected]> * Remove unused SPI 1 pins * Update DMA TIMUP * Fix TIMER_PIN_MAPPING for LED_STRIP_PIN * Fix * Remove unnecessary blank lines * Rename target * Rename target :) --------- Co-authored-by: ot0tot <[email protected]>
1 parent 09e80da commit 02572ab

File tree

1 file changed

+121
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)