Skip to content

Commit 2f7e33c

Browse files
authored
Add AIRBOTSUPERF4V2 (#879)
* Add AIRBOTSUPERF4V2 * Remove conflicting PINIO * Add comment about change for LED0_PIN, keep it now while testing
1 parent 02572ab commit 2f7e33c

File tree

1 file changed

+124
-0
lines changed

1 file changed

+124
-0
lines changed

configs/AIRBOTSUPERF4V2/config.h

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
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 AT32F435M
25+
26+
#define BOARD_NAME AIRBOTSUPERF4V2
27+
#define MANUFACTURER_ID AIRB
28+
29+
#define USE_ACC
30+
#define USE_ACC_SPI_ICM42688P
31+
32+
#define USE_BARO
33+
#define USE_BARO_DPS310
34+
35+
#define USE_GYRO
36+
#define USE_GYRO_SPI_ICM42688P
37+
#define USE_ACCGYRO_LSM6DSV16X
38+
39+
#define USE_FLASH
40+
#define USE_FLASH_M25P16
41+
42+
#ifdef USE_OSD_SD
43+
#define USE_MSP_DISPLAYPORT_FONT
44+
#define MSP_DISPLAYPORT_UART SERIAL_PORT_USART8
45+
#endif
46+
47+
#define BEEPER_INVERTED
48+
#define BEEPER_PIN PB10
49+
#define MOTOR1_PIN PC9
50+
#define MOTOR2_PIN PC8
51+
#define MOTOR3_PIN PB7
52+
#define MOTOR4_PIN PB6
53+
#define MOTOR5_PIN PB0
54+
#define MOTOR6_PIN PB1
55+
#define MOTOR7_PIN PC7
56+
#define MOTOR8_PIN PC6
57+
58+
#define LED_STRIP_PIN PA15
59+
60+
#define UART1_TX_PIN PA9
61+
#define UART2_TX_PIN PA2
62+
#define UART3_TX_PIN PC10
63+
#define UART4_TX_PIN PA0
64+
#define UART5_TX_PIN PC12
65+
66+
#define UART7_TX_PIN PC0
67+
#define UART8_TX_PIN PC2
68+
69+
#define UART1_RX_PIN PA10
70+
71+
#define UART3_RX_PIN PC11
72+
#define UART4_RX_PIN PA1
73+
#define UART5_RX_PIN PD2
74+
75+
#define UART7_RX_PIN PC1
76+
#define UART8_RX_PIN PC3
77+
78+
#define I2C1_SCL_PIN PB8
79+
#define I2C1_SDA_PIN PB9
80+
81+
// test board uses PC15, new revision will use PA8
82+
#define LED0_PIN PC15
83+
84+
#define SPI1_SCK_PIN PA5
85+
#define SPI2_SCK_PIN PB13
86+
#define SPI3_SCK_PIN PB3
87+
88+
#define SPI1_SDI_PIN PA6
89+
#define SPI2_SDI_PIN PB14
90+
#define SPI3_SDI_PIN PB4
91+
92+
#define SPI1_SDO_PIN PA7
93+
#define SPI2_SDO_PIN PB15
94+
#define SPI3_SDO_PIN PB5
95+
96+
#define ADC_VBAT_PIN PC4
97+
#define ADC_CURR_PIN PA3
98+
99+
#define FLASH_CS_PIN PC13
100+
#define FLASH_SPI_INSTANCE SPI3
101+
102+
#define GYRO_1_EXTI_PIN PB12
103+
#define GYRO_1_CS_PIN PC14
104+
#define GYRO_1_SPI_INSTANCE SPI1
105+
106+
#define TIMER_PIN_MAPPING TIMER_PIN_MAP( 0, LED_STRIP_PIN, 1, 0 ) \
107+
TIMER_PIN_MAP( 4, MOTOR1_PIN, 2, 1 ) \
108+
TIMER_PIN_MAP( 3, MOTOR2_PIN, 2, 2 ) \
109+
TIMER_PIN_MAP( 2, MOTOR3_PIN, 1, 3 ) \
110+
TIMER_PIN_MAP( 1, MOTOR4_PIN, 1, 4 ) \
111+
TIMER_PIN_MAP( 5, MOTOR5_PIN, 3, 5 ) \
112+
TIMER_PIN_MAP( 6, MOTOR6_PIN, 3, 6 ) \
113+
TIMER_PIN_MAP( 7, MOTOR8_PIN, 2, 7 ) \
114+
TIMER_PIN_MAP( 8, MOTOR7_PIN, 2, 8 )
115+
116+
#define ADC1_DMA_OPT 9
117+
118+
#define BARO_I2C_INSTANCE I2CDEV_1
119+
#define MAG_I2C_INSTANCE I2CDEV_1
120+
121+
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
122+
123+
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
124+
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC

0 commit comments

Comments
 (0)