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 VGOODRCF411_DJI
27 #define MANUFACTURER_ID VGRC
29 #define BEEPER_PIN PB2
30 #define MOTOR1_PIN PB3
31 #define MOTOR2_PIN PB4
32 #define MOTOR3_PIN PB6
33 #define MOTOR4_PIN PB7
34 #define RX_PPM_PIN PB9
35 #define LED_STRIP_PIN PA8
36 #define UART1_TX_PIN PA9
37 #define UART2_TX_PIN PA2
38 #define UART1_RX_PIN PA10
39 #define UART2_RX_PIN PA3
40 #define INVERTER_PIN_UART1 PB10
43 #define SPI1_SCK_PIN PA5
44 #define SPI2_SCK_PIN PB13
45 #define SPI1_SDI_PIN PA6
46 #define SPI2_SDI_PIN PB14
47 #define SPI1_SDO_PIN PA7
48 #define SPI2_SDO_PIN PB15
49 #define ESCSERIAL_PIN PB9
50 #define ADC_VBAT_PIN PA0
51 #define ADC_RSSI_PIN PB1
52 #define ADC_CURR_PIN PA1
53 #define MAX7456_SPI_CS_PIN PB12
54 #define GYRO_1_EXTI_PIN PB0
55 #define GYRO_1_CS_PIN PA4
57 #define TIMER_PIN_MAPPING \
58 TIMER_PIN_MAP( 0, PB9 , 2, -1) \
59 TIMER_PIN_MAP( 1, PB3 , 1, 0) \
60 TIMER_PIN_MAP( 2, PB4 , 1, 0) \
61 TIMER_PIN_MAP( 3, PB6 , 1, 0) \
62 TIMER_PIN_MAP( 4, PB7 , 1, 0) \
63 TIMER_PIN_MAP( 5, PA15, 1, 0) \
64 TIMER_PIN_MAP( 6, PB8 , 2, -1) \
65 TIMER_PIN_MAP( 7, PA8 , 1, 0)
68 #define ADC1_DMA_OPT 1
71 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
72 #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
73 #define BEEPER_INVERTED
74 #define MAX7456_SPI_INSTANCE SPI2
76 #define GYRO_1_SPI_INSTANCE SPI1