AIRBOTF435 has AT32F435RMT7 processor (#12570)
[betaflight.git] / src / config / IFLIGHT_BLITZ_F7_AIO / config.h
blob89b5a32564dc46ae8759eb97b317ad768631fc5b
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 STM32F745
26 #define BOARD_NAME IFLIGHT_BLITZ_F7_AIO
27 #define MANUFACTURER_ID IFRC
29 #define USE_ACCGYRO_BMI270
30 #define USE_GYRO
31 #define USE_GYRO_SPI_ICM42688P
32 #define USE_ACC
33 #define USE_ACC_SPI_ICM42688P
34 #define USE_BARO_DPS310
35 #define USE_FLASH
36 #define USE_FLASH_M25P16
37 #define USE_MAX7456
39 #define BEEPER_PIN PD3
40 #define MOTOR1_PIN PB4
41 #define MOTOR2_PIN PB0
42 #define MOTOR3_PIN PB5
43 #define MOTOR4_PIN PB1
44 #define MOTOR5_PIN PE9
45 #define MOTOR6_PIN PE11
46 #define MOTOR7_PIN PE13
47 #define MOTOR8_PIN PE14
48 #define SERVO1_PIN PB6
49 #define SERVO2_PIN PB7
50 #define RX_PPM_PIN PB3
51 #define LED_STRIP_PIN PC9
52 #define UART1_TX_PIN PA9
53 #define UART2_TX_PIN PA2
54 #define UART3_TX_PIN PB10
55 #define UART4_TX_PIN PA0
56 #define UART5_TX_PIN PC12
57 #define UART6_TX_PIN PC6
58 #define UART7_TX_PIN PE8
59 #define UART8_TX_PIN PE1
60 #define UART1_RX_PIN PA10
61 #define UART2_RX_PIN PA3
62 #define UART3_RX_PIN PB11
63 #define UART4_RX_PIN PA1
64 #define UART5_RX_PIN PD2
65 #define UART6_RX_PIN PC7
66 #define UART7_RX_PIN PE7
67 #define UART8_RX_PIN PE0
68 #define I2C1_SCL_PIN PB8
69 #define I2C4_SCL_PIN PD12
70 #define I2C1_SDA_PIN PB9
71 #define I2C4_SDA_PIN PD13
72 #define LED0_PIN PD15
73 #define SPI1_SCK_PIN PA5
74 #define SPI2_SCK_PIN PB13
75 #define SPI3_SCK_PIN PC10
76 #define SPI4_SCK_PIN PE2
77 #define SPI1_SDI_PIN PA6
78 #define SPI2_SDI_PIN PB14
79 #define SPI3_SDI_PIN PC11
80 #define SPI4_SDI_PIN PE5
81 #define SPI1_SDO_PIN PA7
82 #define SPI2_SDO_PIN PB15
83 #define SPI3_SDO_PIN PD6
84 #define SPI4_SDO_PIN PE6
85 #define CAMERA_CONTROL_PIN PB3
86 #define ADC_VBAT_PIN PC3
87 #define ADC_RSSI_PIN PC5
88 #define ADC_CURR_PIN PC2
89 #define ADC_EXTERNAL1_PIN PC1
90 #define FLASH_CS_PIN PA15
91 #define MAX7456_SPI_CS_PIN PE4
92 #define GYRO_1_EXTI_PIN PD0
93 #define GYRO_1_CS_PIN PA4
95 #define TIMER_PIN_MAPPING \
96 TIMER_PIN_MAP( 0, PB3 , 1, 0) \
97 TIMER_PIN_MAP( 1, PB4 , 1, 0) \
98 TIMER_PIN_MAP( 2, PB0 , 2, 0) \
99 TIMER_PIN_MAP( 3, PB5 , 1, 0) \
100 TIMER_PIN_MAP( 4, PB1 , 2, 0) \
101 TIMER_PIN_MAP( 5, PE9 , 1, 1) \
102 TIMER_PIN_MAP( 6, PE11, 1, 1) \
103 TIMER_PIN_MAP( 7, PE13, 1, 1) \
104 TIMER_PIN_MAP( 8, PE14, 1, 0) \
105 TIMER_PIN_MAP( 9, PB6 , 1, 0) \
106 TIMER_PIN_MAP(10, PB7 , 1, 0) \
107 TIMER_PIN_MAP(11, PC9 , 2, 0)
110 #define ADC1_DMA_OPT 0
112 //TODO #define MAG_BUSTYPE I2C
113 #define MAG_I2C_INSTANCE (I2CDEV_1)
114 #define USE_BARO
115 #define BARO_I2C_INSTANCE (I2CDEV_4)
116 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
117 #define DEFAULT_ALIGN_BOARD_YAW 135
118 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
119 #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
120 #define DEFAULT_CURRENT_METER_SCALE 200
121 #define BEEPER_INVERTED
122 #define MAX7456_SPI_INSTANCE SPI4
123 #define DASHBOARD_I2C_INSTANCE (I2CDEV_1)
124 #define FLASH_SPI_INSTANCE SPI3
125 #define USE_SPI_GYRO
126 #define GYRO_1_SPI_INSTANCE SPI1