Skip to content

Commit 1c2047a

Browse files
authored
Add support for new custom Acci FC board - ACCIF435ELITE (#849)
* Add support for new custom Acci FC board - ACCIF435ELITE * Add review suggested changes * Change from custom to open source manufacturer * Update timer resources * Add BOX_USER1_NAME
1 parent 21f88d7 commit 1c2047a

File tree

1 file changed

+132
-0
lines changed

1 file changed

+132
-0
lines changed

configs/ACCIF435ELITE/config.h

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
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 FOSS
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 GYRO_1_EXTI_PIN PC4
54+
#define GYRO_1_CS_PIN PA4
55+
#define GYRO_1_SPI_INSTANCE SPI1
56+
57+
#define SPI1_SCK_PIN PA5
58+
#define SPI1_SDI_PIN PA6
59+
#define SPI1_SDO_PIN PA7
60+
61+
// FLASH SPI 2
62+
#define SPI2_SCK_PIN PB13
63+
#define SPI2_SDI_PIN PB14
64+
#define SPI2_SDO_PIN PB15
65+
66+
#define FLASH_CS_PIN PB12
67+
#define FLASH_SPI_INSTANCE SPI2
68+
69+
// ADC
70+
#define USE_ADC
71+
#define ADC_VBAT_PIN PC1
72+
#define ADC_RSSI_PIN PC2
73+
#define ADC_CURR_PIN PC3
74+
#define ADC_INSTANCE ADC1
75+
76+
// UART PORTS
77+
#define UART1_TX_PIN PB6
78+
#define UART1_RX_PIN PB7
79+
80+
#define UART2_TX_PIN PA2
81+
#define UART2_RX_PIN PA3
82+
83+
#define UART3_TX_PIN PB10
84+
#define UART3_RX_PIN PB11
85+
86+
#define UART4_TX_PIN PA0
87+
#define UART4_RX_PIN PA1
88+
89+
#define UART5_TX_PIN PC12
90+
#define UART5_RX_PIN PD2
91+
92+
#define UART6_TX_PIN PC6
93+
#define UART6_RX_PIN PC7
94+
95+
#define GYRO_1_CLKIN_PIN PC5
96+
97+
// MOTORS PINOUT
98+
#define MOTOR1_PIN PA9
99+
#define MOTOR2_PIN PA8
100+
#define MOTOR3_PIN PC9
101+
#define MOTOR4_PIN PC8
102+
103+
// TIMERS
104+
#define TIMER_PIN_MAPPING \
105+
TIMER_PIN_MAP( 0, PA9 , 1, 0) \
106+
TIMER_PIN_MAP( 1, PA8 , 1, 1) \
107+
TIMER_PIN_MAP( 2, PC9 , 1, 2) \
108+
TIMER_PIN_MAP( 3, PC8 , 1, 3) \
109+
TIMER_PIN_MAP( 4, PB3 , 1, 4) \
110+
TIMER_PIN_MAP( 5, PC5 , 1, -1)
111+
112+
#define ADC1_DMA_OPT 8
113+
114+
// I2C
115+
#define BARO_I2C_INSTANCE I2CDEV_1
116+
#define MAG_I2C_INSTANCE I2CDEV_1
117+
118+
#define I2C1_SCL_PIN PB8
119+
#define I2C1_SDA_PIN PB9
120+
121+
// USERS
122+
#define PINIO1_PIN PB1
123+
#define PINIO1_BOX 40
124+
#define PINIO1_CONFIG 129
125+
#define BOX_USER1_NAME "VTX PWR"
126+
127+
// DEFAULTS
128+
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
129+
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
130+
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
131+
#define DEFAULT_VOLTAGE_METER_SCALE 113
132+
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_ON

0 commit comments

Comments
 (0)