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
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/>.
24 #define FC_TARGET_MCU STM32F411
26 #define BOARD_NAME BETAFPVF411RX
27 #define MANUFACTURER_ID BEFH
30 #define USE_ACC_SPI_MPU6000
32 #define USE_GYRO_SPI_MPU6000
33 #define USE_ACC_SPI_MPU6500
34 #define USE_GYRO_SPI_MPU6500
35 #define USE_ACCGYRO_BMI270
39 #define USE_FLASH_W25Q128FV
41 #define MOTOR1_PIN PB8
42 #define MOTOR2_PIN PA0
43 #define MOTOR3_PIN PB10
44 #define MOTOR4_PIN PB7
45 #define RX_PPM_PIN PA10
46 #define LED_STRIP_PIN PB1
47 #define UART1_TX_PIN PA9
48 #define UART2_TX_PIN PA2
49 #define UART1_RX_PIN PA10
50 #define UART2_RX_PIN PA3
52 #define SPI1_SCK_PIN PA5
53 #define SPI2_SCK_PIN PB13
54 #define SPI3_SCK_PIN PB3
55 #define SPI1_SDI_PIN PA6
56 #define SPI2_SDI_PIN PB14
57 #define SPI3_SDI_PIN PB4
58 #define SPI1_SDO_PIN PA7
59 #define SPI2_SDO_PIN PB15
60 #define SPI3_SDO_PIN PB5
61 #define ADC_VBAT_PIN PA1
62 #define ADC_CURR_PIN PB0
63 #define MAX7456_SPI_CS_PIN PB12
64 #define RX_SPI_CS_PIN PA15
65 #define RX_SPI_EXTI_PIN PC13
66 #define RX_SPI_BIND_PIN PB2
67 #define RX_SPI_LED_PIN PC15
68 #define RX_SPI_CC2500_TX_EN_PIN PB9
69 #define RX_SPI_CC2500_LNA_EN_PIN PA13
70 #define RX_SPI_CC2500_ANT_SEL_PIN PA14
71 #define GYRO_1_EXTI_PIN PB6
72 #define GYRO_1_CS_PIN PA4
73 #define FLASH_CS_PIN PA8
75 #define TIMER_PIN_MAPPING \
76 TIMER_PIN_MAP( 0, PA0 , 1, 0) \
77 TIMER_PIN_MAP( 1, PA8 , 1, 0) \
78 TIMER_PIN_MAP( 2, PA10, 1, -1) \
79 TIMER_PIN_MAP( 3, PB1 , 2, 0) \
80 TIMER_PIN_MAP( 4, PB7 , 1, 0) \
81 TIMER_PIN_MAP( 5, PB8 , 1, 0) \
82 TIMER_PIN_MAP( 6, PB10, 1, 0)
86 #define ADC1_DMA_OPT 1
88 //TODO #define RX_SPI_PROTOCOL FRSKY_X
89 #define RX_SPI_INSTANCE SPI3
90 #define RX_SPI_LED_INVERTED
91 #define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO
92 #define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF
93 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
94 #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
95 #define DEFAULT_CURRENT_METER_SCALE 179
96 #define SYSTEM_HSE_MHZ 8
97 #define MAX7456_SPI_INSTANCE SPI2
98 //TODO #define CC2500_SPI_CHIP_DETECT OFF
99 #define FLASH_SPI_INSTANCE SPI2
100 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
102 #define GYRO_1_SPI_INSTANCE SPI1
103 #define GYRO_1_ALIGN CW180_DEG
104 #define GYRO_1_ALIGN_YAW 1800