Skip to content

Commit ff6095a

Browse files
ot0tothaslinghuis
andauthored
Add DARWINH7DUAL target (#675)
* Create config.h * Remove extra gyro align defines Co-authored-by: Mark Haslinghuis <[email protected]> * Remove baro defines FC has no on-board baro --------- Co-authored-by: Mark Haslinghuis <[email protected]>
1 parent 00615ce commit ff6095a

File tree

1 file changed

+131
-0
lines changed

1 file changed

+131
-0
lines changed

configs/DARWINH7DUAL/config.h

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
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 DARWINH7DUAL
27+
#define MANUFACTURER_ID DAFP
28+
29+
#define USE_GYRO
30+
#define USE_GYRO_SPI_MPU6000
31+
#define USE_GYRO_SPI_ICM42688P
32+
#define USE_ACC
33+
#define USE_ACC_SPI_MPU6000
34+
#define USE_ACC_SPI_ICM42688P
35+
#define USE_FLASH
36+
#define USE_FLASH_W25N01G
37+
#define USE_FLASH_W25N02K
38+
#define USE_MAX7456
39+
40+
#define BEEPER_PIN PA15
41+
#define MOTOR1_PIN PB0
42+
#define MOTOR2_PIN PB1
43+
#define MOTOR3_PIN PA0
44+
#define MOTOR4_PIN PA1
45+
#define MOTOR5_PIN PD13
46+
#define MOTOR6_PIN PD12
47+
#define MOTOR7_PIN PA3
48+
#define MOTOR8_PIN PA2
49+
#define SERVO1_PIN PE5
50+
#define SERVO2_PIN PE6
51+
#define LED_STRIP_PIN PA8
52+
#define UART1_TX_PIN PA9
53+
#define UART2_TX_PIN PD5
54+
#define UART3_TX_PIN PD8
55+
#define UART4_TX_PIN PB9
56+
#define UART6_TX_PIN PC6
57+
#define UART7_TX_PIN PE8
58+
#define UART8_TX_PIN PE1
59+
#define UART1_RX_PIN PA10
60+
#define UART2_RX_PIN PD6
61+
#define UART3_RX_PIN PD9
62+
#define UART4_RX_PIN PB8
63+
#define UART6_RX_PIN PC7
64+
#define UART7_RX_PIN PE7
65+
#define UART8_RX_PIN PE0
66+
#define I2C1_SCL_PIN PB6
67+
#define I2C1_SDA_PIN PB7
68+
#define LED0_PIN PE3
69+
#define LED1_PIN PE4
70+
#define SPI1_SCK_PIN PA5
71+
#define SPI2_SCK_PIN PB13
72+
#define SPI3_SCK_PIN PB3
73+
#define SPI4_SCK_PIN PE12
74+
#define SPI1_SDI_PIN PA6
75+
#define SPI2_SDI_PIN PB14
76+
#define SPI3_SDI_PIN PB4
77+
#define SPI4_SDI_PIN PE13
78+
#define SPI1_SDO_PIN PD7
79+
#define SPI2_SDO_PIN PB15
80+
#define SPI3_SDO_PIN PB5
81+
#define SPI4_SDO_PIN PE14
82+
#define ESCSERIAL_PIN PC7
83+
#define ADC_VBAT_PIN PC0
84+
#define ADC_CURR_PIN PC1
85+
#define PINIO1_PIN PD10
86+
#define PINIO2_PIN PD11
87+
#define FLASH_CS_PIN PD3
88+
#define MAX7456_SPI_CS_PIN PB12
89+
#define GYRO_1_EXTI_PIN PB2
90+
#define GYRO_2_EXTI_PIN PE15
91+
#define GYRO_1_CS_PIN PC15
92+
#define GYRO_2_CS_PIN PE11
93+
#define USB_DETECT_PIN PE2
94+
95+
#define TIMER_PIN_MAPPING \
96+
TIMER_PIN_MAP( 0, PB0 , 2, 0) \
97+
TIMER_PIN_MAP( 1, PB1 , 2, 1) \
98+
TIMER_PIN_MAP( 2, PA0 , 2, 2) \
99+
TIMER_PIN_MAP( 3, PA1 , 2, 3) \
100+
TIMER_PIN_MAP( 4, PD13, 1, 4) \
101+
TIMER_PIN_MAP( 5, PD12, 1, 5) \
102+
TIMER_PIN_MAP( 6, PA3 , 2, 6) \
103+
TIMER_PIN_MAP( 7, PA2 , 2, 7) \
104+
TIMER_PIN_MAP( 8, PE5 , 1, -1) \
105+
TIMER_PIN_MAP( 9, PE6 , 1, -1) \
106+
TIMER_PIN_MAP(10, PA8 , 1, 8) \
107+
TIMER_PIN_MAP(11, PA15, 1, -1)
108+
109+
110+
111+
#define ADC1_DMA_OPT 9
112+
#define ADC3_DMA_OPT 10
113+
#define TIMUP3_DMA_OPT 11
114+
#define TIMUP4_DMA_OPT 12
115+
#define TIMUP5_DMA_OPT 13
116+
117+
#define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH
118+
#define MAG_I2C_INSTANCE I2CDEV_1
119+
#define BARO_I2C_INSTANCE I2CDEV_1
120+
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
121+
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
122+
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
123+
#define BEEPER_INVERTED
124+
#define PINIO1_BOX 40
125+
#define PINIO2_BOX 41
126+
#define MAX7456_SPI_INSTANCE SPI2
127+
#define FLASH_SPI_INSTANCE SPI3
128+
#define GYRO_1_SPI_INSTANCE SPI1
129+
#define GYRO_1_ALIGN CW180_DEG
130+
#define GYRO_2_SPI_INSTANCE SPI4
131+
#define GYRO_2_ALIGN CW180_DEG

0 commit comments

Comments
 (0)