Skip to content

Commit df10848

Browse files
tobeornottobe81blckmnhaslinghuisot0tot
authored
add FLYCOLORF435 target (#841)
* add FLYCOLORF435 target * Update config.h * Update config.h * Update config.h Co-authored-by: Mark Haslinghuis <[email protected]> * Update config.h Co-authored-by: ot0tot <[email protected]> * Update configs/FLYCOLORF435/config.h * Update configs/FLYCOLORF435/config.h --------- Co-authored-by: Jay Blackman <[email protected]> Co-authored-by: Mark Haslinghuis <[email protected]> Co-authored-by: ot0tot <[email protected]>
1 parent 43737dd commit df10848

File tree

1 file changed

+117
-0
lines changed

1 file changed

+117
-0
lines changed

configs/FLYCOLORF435/config.h

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
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 FLYCOLORF435
27+
#define MANUFACTURER_ID FLCO
28+
29+
#define USE_ACC
30+
#define USE_ACC_SPI_ICM42688P
31+
#define USE_GYRO
32+
#define USE_GYRO_SPI_ICM42688P
33+
#define USE_BARO
34+
#define USE_BARO_BMP388
35+
#define USE_FLASH
36+
#define USE_FLASH_M25P16
37+
#define USE_MAX7456
38+
#define USE_GYRO_CLKIN
39+
40+
#define GYRO_1_CLKIN_PIN PC5
41+
#define BEEPER_PIN PC15
42+
#define MOTOR1_PIN PC9
43+
#define MOTOR2_PIN PC8
44+
#define MOTOR3_PIN PC7
45+
#define MOTOR4_PIN PC6
46+
#define SERVO1_PIN PB6
47+
#define SERVO2_PIN PB7
48+
#define RX_PPM_PIN PA3
49+
#define LED0_PIN PC4
50+
#define LED1_PIN PA4
51+
#define LED_STRIP_PIN PA1
52+
53+
#define UART1_TX_PIN PA9
54+
#define UART1_RX_PIN PA10
55+
#define UART2_TX_PIN PA2
56+
#define UART2_RX_PIN PA3
57+
#define UART3_TX_PIN PB10
58+
#define UART3_RX_PIN PB11
59+
#define UART4_TX_PIN PC10
60+
#define UART4_RX_PIN PC11
61+
#define UART5_TX_PIN PC12
62+
#define UART5_RX_PIN PD2
63+
64+
#define SPI1_SCK_PIN PA5
65+
#define SPI2_SCK_PIN PB13
66+
#define SPI3_SCK_PIN PB3
67+
#define SPI1_SDI_PIN PA6
68+
#define SPI2_SDI_PIN PB14
69+
#define SPI3_SDI_PIN PB4
70+
#define SPI1_SDO_PIN PA7
71+
#define SPI2_SDO_PIN PB15
72+
#define SPI3_SDO_PIN PB5
73+
#define I2C1_SCL_PIN PB8
74+
#define I2C1_SDA_PIN PB9
75+
#define PINIO1_PIN PC0
76+
#define PINIO2_PIN PB0
77+
#define GYRO_1_EXTI_PIN PA8
78+
#define GYRO_1_CS_PIN PA15
79+
#define FLASH_CS_PIN PA0
80+
#define MAX7456_SPI_CS_PIN PB12
81+
82+
#define ADC_CURR_PIN PC1
83+
#define ADC_VBAT_PIN PC2
84+
#define USB_DETECT_PIN PC3
85+
86+
#define TIMER_PIN_MAPPING \
87+
TIMER_PIN_MAP( 0, PA1, 2, 4 ) \
88+
TIMER_PIN_MAP( 1, PA3, 1, -1 ) \
89+
TIMER_PIN_MAP( 2, PC5, 1, -1 ) \
90+
TIMER_PIN_MAP( 3, PB6, 1, -1 ) \
91+
TIMER_PIN_MAP( 4, PB7, 1, -1 ) \
92+
TIMER_PIN_MAP( 5, PC9, 2, 0 ) \
93+
TIMER_PIN_MAP( 6, PC8, 2, 2 ) \
94+
TIMER_PIN_MAP( 7, PC7, 2, 1 ) \
95+
TIMER_PIN_MAP( 8, PC6, 2, 3 )
96+
97+
#define ADC1_DMA_OPT 11
98+
99+
#define BARO_I2C_INSTANCE I2CDEV_1
100+
#define MAG_I2C_INSTANCE I2CDEV_1
101+
#define GYRO_1_SPI_INSTANCE SPI1
102+
#define MAX7456_SPI_INSTANCE SPI2
103+
#define FLASH_SPI_INSTANCE SPI3
104+
#define SYSTEM_HSE_MHZ 8
105+
#define DEFAULT_PID_PROCESS_DENOM 2
106+
#define BEEPER_INVERTED
107+
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
108+
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
109+
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
110+
#define DEFAULT_VOLTAGE_METER_SCALE 113
111+
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_ON
112+
#define PINIO1_CONFIG 129
113+
#define PINIO2_CONFIG 1
114+
#define PINIO1_BOX 40
115+
#define PINIO2_BOX 41
116+
#define BOX_USER1_NAME "BEC SWITCH"
117+
#define BOX_USER2_NAME "CAM 1,2"

0 commit comments

Comments
 (0)