Fix Config (#12448)
[betaflight.git] / src / config / FISHDRONEF4 / config.h
blobc9f14e1e28caea9331e446bde0dd5a46348603cf
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/>.
23 This file has been auto generated from unified-targets repo.
25 The auto generation is transitional only, please remove this comment once the file is edited.
28 #define FC_TARGET_MCU STM32F405
30 #define BOARD_NAME FISHDRONEF4
31 #define MANUFACTURER_ID LEGA
33 #define USE_ACC_SPI_MPU6500
34 #define USE_GYRO_SPI_MPU6500
35 #define USE_MAX7456
36 #define USE_SDCARD
38 #define BEEPER_PIN PC15
39 #define MOTOR1_PIN PB8
40 #define MOTOR2_PIN PA2
41 #define MOTOR3_PIN PA15
42 #define MOTOR4_PIN PA3
43 #define RX_PPM_PIN PB0
44 #define LED_STRIP_PIN PA0
45 #define UART1_TX_PIN PA9
46 #define UART3_TX_PIN PB10
47 #define UART6_TX_PIN PC6
48 #define UART1_RX_PIN PA10
49 #define UART3_RX_PIN PB11
50 #define UART6_RX_PIN PC7
51 #define INVERTER6_PIN PC8
52 #define LED0_PIN PC13
53 #define LED1_PIN PC14
54 #define SPI1_SCK_PIN PA5
55 #define SPI2_SCK_PIN PB13
56 #define SPI3_SCK_PIN PC10
57 #define SPI1_MISO_PIN PA6
58 #define SPI2_MISO_PIN PC2
59 #define SPI3_MISO_PIN PC11
60 #define SPI1_MOSI_PIN PA7
61 #define SPI2_MOSI_PIN PC3
62 #define SPI3_MOSI_PIN PC12
63 #define ESCSERIAL_PIN PB0
64 #define ADC_VBAT_PIN PC0
65 #define ADC_RSSI_PIN PC1
66 #define SDCARD_CS_PIN PB9
67 #define SDCARD_DETECT_PIN PB7
68 #define FLASH_CS_PIN PD2
69 #define MAX7456_SPI_CS_PIN PB12
70 #define GYRO_1_EXTI_PIN PC4
71 #define GYRO_1_CS_PIN PA4
72 #define USB_DETECT_PIN PA8
73 #define VTX_CS_PIN PB3
74 #define VTX_DATA_PIN PB5
75 #define VTX_CLK_PIN PB4
77 #define TIMER_PIN_MAPPING \
78 TIMER_PIN_MAP( 0, PB0 , 2, 0) \
79 TIMER_PIN_MAP( 1, PB8 , 1, 0) \
80 TIMER_PIN_MAP( 2, PA2 , 1, 0) \
81 TIMER_PIN_MAP( 3, PA15, 1, 0) \
82 TIMER_PIN_MAP( 4, PA3 , 1, 1) \
83 TIMER_PIN_MAP( 5, PA0 , 2, 0)
87 #define SPI3_TX_DMA_OPT 0
88 #define ADC1_DMA_OPT 1
90 //TODO #define BLACKBOX_DEVICE SDCARD
91 #define BEEPER_INVERTED
92 //TODO #define BEEPER_OD OFF
93 //TODO #define SDCARD_DETECT_INVERTED ON
94 #define USE_SDCARD_SPI
95 #define SDCARD_SPI_INSTANCE SPI3
96 #define SYSTEM_HSE_MHZ 8
97 #define MAX7456_SPI_INSTANCE SPI2
98 #define FLASH_SPI_INSTANCE SPI3
99 #define USE_SPI_GYRO
100 #define GYRO_1_SPI_INSTANCE SPI1
101 #define GYRO_1_ALIGN CW90_DEG
102 #define GYRO_1_ALIGN_YAW 900