Skip to content

Commit 34ffb1b

Browse files
committed
Add support for new custom Acci FC board - ACCIF435ELITE
1 parent 2c8fac7 commit 34ffb1b

File tree

1 file changed

+134
-0
lines changed

1 file changed

+134
-0
lines changed

configs/ACCIF435ELITE/config.h

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
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 AT32F435G
25+
26+
#define BOARD_NAME ACCIF435ELITE
27+
#define MANUFACTURER_ID CUST
28+
29+
#define USE_ACC
30+
#define USE_GYRO
31+
32+
#define USE_GYRO_CLKIN
33+
#define USE_ACC_SPI_ICM42688P
34+
#define USE_GYRO_SPI_ICM42688P
35+
36+
#define USE_BARO
37+
#define USE_BARO_DPS310
38+
#define DEFAULT_BARO_I2C_ADDRESS 119
39+
40+
#define USE_FLASH
41+
#define USE_FLASH_M25P16
42+
#define USE_FLASH_W25Q128FV
43+
#define USE_FLASH_W25N01G
44+
45+
// I/O
46+
#define LED0_PIN PC15
47+
#define LED1_PIN PC14
48+
#define BEEPER_PIN PC13
49+
#define BEEPER_INVERTED
50+
#define LED_STRIP_PIN PB3
51+
52+
// ACC/GYRO SPI 1
53+
#define USE_SPI_GYRO
54+
#define GYRO_1_EXTI_PIN PC4
55+
#define GYRO_1_CS_PIN PA4
56+
#define GYRO_1_SPI_INSTANCE SPI1
57+
#define GYRO_1_ALIGN CW0_DEG
58+
59+
#define SPI1_SCK_PIN PA5
60+
#define SPI1_SDI_PIN PA6
61+
#define SPI1_SDO_PIN PA7
62+
63+
// FLASH SPI 2
64+
#define SPI2_SCK_PIN PB13
65+
#define SPI2_SDI_PIN PB14
66+
#define SPI2_SDO_PIN PB15
67+
68+
#define FLASH_CS_PIN PB12
69+
#define FLASH_SPI_INSTANCE SPI2
70+
71+
// ADC
72+
#define USE_ADC
73+
#define ADC_VBAT_PIN PC1
74+
#define ADC_RSSI_PIN PC2
75+
#define ADC_CURR_PIN PC3
76+
#define ADC_INSTANCE ADC1
77+
78+
// UART PORTS
79+
#define UART1_TX_PIN PB6
80+
#define UART1_RX_PIN PB7
81+
82+
#define UART2_TX_PIN PA2
83+
#define UART2_RX_PIN PA3
84+
85+
#define UART3_TX_PIN PB10
86+
#define UART3_RX_PIN PB11
87+
88+
#define UART4_TX_PIN PA0
89+
#define UART4_RX_PIN PA1
90+
91+
#define UART5_TX_PIN PC12
92+
#define UART5_RX_PIN PD2
93+
94+
#define UART6_TX_PIN PC6
95+
#define UART6_RX_PIN PC7
96+
97+
#define GYRO_1_CLKIN_PIN PC5
98+
99+
// TIMERS
100+
#define TIMER_PIN_MAPPING \
101+
TIMER_PIN_MAP( 0, PA9 , 1, 1) \
102+
TIMER_PIN_MAP( 1, PA8 , 1, 1) \
103+
TIMER_PIN_MAP( 2, PC9 , 1, 0) \
104+
TIMER_PIN_MAP( 3, PC8 , 1, 0) \
105+
TIMER_PIN_MAP( 4, PB3 , 1, 0) \
106+
TIMER_PIN_MAP( 5, PC5 , 1, -1)
107+
108+
// MOTORS PINOUT
109+
#define MOTOR1_PIN PA9
110+
#define MOTOR2_PIN PA8
111+
#define MOTOR3_PIN PC9
112+
#define MOTOR4_PIN PC8
113+
114+
#define ADC1_DMA_OPT 1
115+
116+
// BARO I2C
117+
#define BARO_I2C_INSTANCE I2CDEV_1
118+
#define MAG_I2C_INSTANCE I2CDEV_1
119+
#define USE_I2C_PULLUP
120+
121+
#define I2C1_SCL_PIN PB8
122+
#define I2C1_SDA_PIN PB9
123+
124+
// USERS
125+
#define PINIO1_PIN PB1
126+
#define PINIO1_BOX 40
127+
#define PINIO1_CONFIG 129
128+
129+
// DEFAULTS
130+
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
131+
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
132+
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
133+
#define DEFAULT_VOLTAGE_METER_SCALE 113
134+
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON

0 commit comments

Comments
 (0)