Skip to content

Commit 101e6dd

Browse files
committed
Add AEDROXH743
1 parent ea4b6bf commit 101e6dd

File tree

1 file changed

+146
-0
lines changed

1 file changed

+146
-0
lines changed

configs/AEDROXH743/config.h

+146
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
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 AEDROXH7
26+
#define MANUFACTURER_ID AEDR
27+
28+
// BEEPER & LEDS
29+
#define BEEPER_PIN PA7
30+
#define BEEPER_INVERTED
31+
#define LED_STRIP_PIN PA5
32+
#define LED0_PIN PE5
33+
#define LED1_PIN PE4
34+
35+
// MOTORS & SERVOS
36+
#define MOTOR1_PIN PC7
37+
#define MOTOR2_PIN PC6
38+
#define MOTOR3_PIN PC9
39+
#define MOTOR4_PIN PC8
40+
#define MOTOR5_PIN PE9
41+
#define MOTOR6_PIN PE11
42+
#define MOTOR7_PIN PE13
43+
#define MOTOR8_PIN PE14
44+
45+
// SPI
46+
#define SPI2_SCK_PIN PB13
47+
#define SPI2_SDI_PIN PB14
48+
#define SPI2_SDO_PIN PB15
49+
50+
#define SPI3_SCK_PIN PC10
51+
#define SPI3_SDI_PIN PC11
52+
#define SPI3_SDO_PIN PB2
53+
54+
// GYRO & ACC
55+
#define USE_GYRO
56+
#define USE_GYRO_SPI_ICM42688P
57+
#define USE_ACC
58+
#define USE_ACC_SPI_ICM42688P
59+
#define USE_GYRO_CLKIN
60+
61+
#define GYRO_1_CLKIN_PIN PD13
62+
#define GYRO_1_EXTI_PIN PC4
63+
#define GYRO_1_CS_PIN PA4
64+
#define GYRO_1_SPI_INSTANCE SPI2
65+
#define GYRO_1_ALIGN CW90_DEG
66+
67+
// FLASH
68+
#define USE_FLASH
69+
#define USE_FLASH_W25Q128FV
70+
#define USE_FLASH_M25P16
71+
#define FLASH_CS_PIN PA15
72+
#define FLASH_SPI_INSTANCE SPI3
73+
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
74+
75+
// BARO & MAG
76+
#define USE_BARO
77+
#define USE_BARO_DPS310
78+
#define USE_BARO_DPS368
79+
80+
#define I2C1_SCL_PIN PB6
81+
#define I2C1_SDA_PIN PB7
82+
83+
#define I2C2_SCL_PIN PB10
84+
#define I2C2_SDA_PIN PB11
85+
86+
#define MAG_I2C_INSTANCE I2CDEV_1
87+
#define BARO_I2C_INSTANCE I2CDEV_2
88+
89+
// UART & VCP
90+
#define UART1_TX_PIN PA9
91+
#define UART1_RX_PIN PA10
92+
93+
#define UART2_TX_PIN PD5
94+
#define UART2_RX_PIN PD6
95+
96+
#define UART3_TX_PIN PD8
97+
#define UART3_RX_PIN PD9
98+
99+
#define SERIALRX_UART SERIAL_PORT_USART3
100+
101+
#define UART4_TX_PIN PD1
102+
#define UART4_RX_PIN PD0
103+
104+
#define UART7_TX_PIN PE8
105+
#define UART7_RX_PIN PE7
106+
107+
#define UART8_TX_PIN PE1
108+
#define UART8_RX_PIN PE0
109+
110+
#define USB_DETECT_PIN PE6
111+
112+
// ADC
113+
#define ADC_VBAT_PIN PC0
114+
#define ADC_RSSI_PIN PC5
115+
#define ADC_CURR_PIN PC1
116+
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
117+
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
118+
#define DEFAULT_CURRENT_METER_SCALE 200
119+
120+
// PINIO
121+
#define PINIO1_PIN PA2
122+
#define PINIO2_PIN PA3
123+
#define PINIO3_PIN PB12
124+
125+
#define PINIO1_BOX 40
126+
#define PINIO2_BOX 41
127+
#define PINIO3_BOX 42
128+
129+
#define PINIO1_CONFIG 129
130+
#define PINIO2_CONFIG 129
131+
#define PINIO3_CONFIG 129
132+
133+
// TIMERS & DMA
134+
#define TIMER_PIN_MAPPING TIMER_PIN_MAP( 0, MOTOR1_PIN, 2, 0 ) \
135+
TIMER_PIN_MAP( 1, MOTOR2_PIN, 2, 1 ) \
136+
TIMER_PIN_MAP( 2, MOTOR3_PIN, 2, 2 ) \
137+
TIMER_PIN_MAP( 3, MOTOR4_PIN, 2, 3 ) \
138+
TIMER_PIN_MAP( 4, MOTOR5_PIN, 1, 4 ) \
139+
TIMER_PIN_MAP( 5, MOTOR6_PIN, 1, 5 ) \
140+
TIMER_PIN_MAP( 6, MOTOR7_PIN, 1, 6 ) \
141+
TIMER_PIN_MAP( 7, MOTOR8_PIN, 1, 7 ) \
142+
TIMER_PIN_MAP( 8, LED_STRIP_PIN, 1, 9 ) \
143+
TIMER_PIN_MAP( 9, GYRO_1_CLKIN_PIN, 1, 11 )
144+
145+
#define ADC1_DMA_OPT 8
146+
#define ADC3_DMA_OPT 10

0 commit comments

Comments
 (0)