AIRBOTF435 has AT32F435RMT7 processor (#12570)
[betaflight.git] / src / config / FLYWOOF7DUAL / config.h
blob6f4233399055caae6c059e5a6fd6c8d93b61bc3b
1 /*
2 * This file is part of Betaflight.
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.
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.
14 * See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public
17 * License along with this software.
19 * If not, see <http://www.gnu.org/licenses/>.
22 #pragma once
24 #define FC_TARGET_MCU STM32F7X2
26 #define BOARD_NAME FLYWOOF7DUAL
27 #define MANUFACTURER_ID FLWO
29 #define USE_ACC
30 #define USE_ACC_SPI_MPU6000
31 #define USE_GYRO
32 #define USE_GYRO_SPI_MPU6000
33 #define USE_ACC_SPI_ICM20689
34 #define USE_GYRO_SPI_ICM20689
35 #define USE_ACC_SPI_ICM42688P
36 #define USE_GYRO_SPI_ICM42688P
37 #define USE_BARO_BMP280
38 #define USE_BARO_DPS310
39 #define USE_FLASH
40 #define USE_FLASH_W25Q128FV
41 #define USE_MAX7456
43 #define BEEPER_PIN PC14
44 #define MOTOR1_PIN PB1
45 #define MOTOR2_PIN PB4
46 #define MOTOR3_PIN PB3
47 #define MOTOR4_PIN PA15
48 #define MOTOR5_PIN PC8
49 #define MOTOR6_PIN PC9
50 #define RX_PPM_PIN PC6
51 #define RX_PWM1_PIN PB10
52 #define RX_PWM2_PIN PA2
53 #define RX_PWM3_PIN PA3
54 #define LED_STRIP_PIN PA8
55 #define UART1_TX_PIN PA9
56 #define UART2_TX_PIN PA2
57 #define UART3_TX_PIN PB10
58 #define UART4_TX_PIN PA0
59 #define UART5_TX_PIN PC12
60 #define UART6_TX_PIN PC6
61 #define UART1_RX_PIN PA10
62 #define UART2_RX_PIN PA3
63 #define UART3_RX_PIN PB11
64 #define UART4_RX_PIN PA1
65 #define UART5_RX_PIN PD2
66 #define UART6_RX_PIN PC7
67 #define I2C1_SCL_PIN PB6
68 #define I2C1_SDA_PIN PB7
69 #define LED0_PIN PC15
70 #define SPI1_SCK_PIN PA5
71 #define SPI2_SCK_PIN PB13
72 #define SPI3_SCK_PIN PC10
73 #define SPI1_SDI_PIN PA6
74 #define SPI2_SDI_PIN PB14
75 #define SPI3_SDI_PIN PC11
76 #define SPI1_SDO_PIN PA7
77 #define SPI2_SDO_PIN PB15
78 #define SPI3_SDO_PIN PB5
79 #define CAMERA_CONTROL_PIN PB8
80 #define ADC_VBAT_PIN PC1
81 #define ADC_RSSI_PIN PC2
82 #define ADC_CURR_PIN PC0
83 #define PINIO1_PIN PB0
84 #define PINIO2_PIN PB9
85 #define FLASH_CS_PIN PC13
86 #define MAX7456_SPI_CS_PIN PB12
87 #define GYRO_1_EXTI_PIN PC3
88 #define GYRO_2_EXTI_PIN PC4
89 #define GYRO_1_CS_PIN PA4
90 #define GYRO_2_CS_PIN PB2
92 #define TIMER_PIN_MAPPING \
93 TIMER_PIN_MAP( 0, PC6 , 2, 0) \
94 TIMER_PIN_MAP( 1, PB1 , 2, 0) \
95 TIMER_PIN_MAP( 2, PB4 , 1, 0) \
96 TIMER_PIN_MAP( 3, PB3 , 1, 0) \
97 TIMER_PIN_MAP( 4, PA15, 1, 0) \
98 TIMER_PIN_MAP( 5, PC8 , 2, 1) \
99 TIMER_PIN_MAP( 6, PC9 , 2, 0) \
100 TIMER_PIN_MAP( 7, PA8 , 1, 0) \
101 TIMER_PIN_MAP( 8, PB8 , 2, -1) \
102 TIMER_PIN_MAP( 9, PB10, 1, 0) \
103 TIMER_PIN_MAP(10, PA2 , 2, 0) \
104 TIMER_PIN_MAP(11, PA3 , 2, 1)
108 #define ADC3_DMA_OPT 0
110 //TODO #define MAG_BUSTYPE I2C
111 #define MAG_I2C_INSTANCE (I2CDEV_1)
112 #define USE_BARO
113 #define BARO_I2C_INSTANCE (I2CDEV_1)
114 #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
115 //TODO #define MOTOR_PWM_PROTOCOL DSHOT600
117 #define USE_ADC
118 #define ADC_INSTANCE ADC3
119 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
120 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
121 #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
122 #define DEFAULT_CURRENT_METER_SCALE 170
123 #define BEEPER_INVERTED
124 #define MAX7456_SPI_INSTANCE SPI2
125 #define PINIO1_BOX 40
126 #define PINIO2_BOX 41
127 #define FLASH_SPI_INSTANCE SPI3
128 #define USE_SPI_GYRO
129 #define GYRO_1_SPI_INSTANCE SPI1
130 #define GYRO_1_ALIGN CW180_DEG_FLIP
131 #define GYRO_2_SPI_INSTANCE SPI1
132 #define GYRO_2_ALIGN CW270_DEG