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 FLOWBOXV2
27 #define MANUFACTURER_ID NERC
29 #define BEEPER_PIN PB8
30 #define MOTOR1_PIN PA0
31 #define MOTOR2_PIN PB0
32 #define MOTOR3_PIN PB1
33 #define MOTOR4_PIN PB10
34 #define UART1_TX_PIN PA9
35 #define UART2_TX_PIN PA2
36 #define UART1_RX_PIN PA10
37 #define UART2_RX_PIN PA3
39 #define SPI1_SCK_PIN PA5
40 #define SPI3_SCK_PIN PB3
41 #define SPI1_SDI_PIN PA6
42 #define SPI3_SDI_PIN PB4
43 #define SPI1_SDO_PIN PA7
44 #define SPI3_SDO_PIN PB5
45 #define SDCARD_SPI_CS_PIN PA15
46 #define GYRO_1_EXTI_PIN PA1
47 #define GYRO_1_CS_PIN PA4
49 #define TIMER_PIN_MAPPING \
50 TIMER_PIN_MAP( 0, PB8 , 1, 0) \
51 TIMER_PIN_MAP( 1, PA0 , 1, 0) \
52 TIMER_PIN_MAP( 2, PB0 , 2, 0) \
53 TIMER_PIN_MAP( 3, PB1 , 2, 0) \
54 TIMER_PIN_MAP( 4, PB10, 1, 0)
58 #define SPI3_TX_DMA_OPT 0
59 #define ADC1_DMA_OPT 1
61 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD
62 #define BEEPER_PWM_HZ 2185
63 #define BEEPER_INVERTED
64 #define USE_SDCARD_SPI
65 #define SDCARD_SPI_INSTANCE SPI3
66 #define SYSTEM_HSE_MHZ 8
67 #define GYRO_1_SPI_INSTANCE SPI1
68 #define GYRO_1_ALIGN CW180_DEG
69 #define GYRO_1_ALIGN_YAW 1800