Fix Config (#12448)
[betaflight.git] / src / config / ELLE0 / config.h
blob539536561bd26bf3a5afe430d3f68f5b674430b7
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 ELLE0
31 #define MANUFACTURER_ID LEGA
33 #define USE_ACC_SPI_MPU6500
34 #define USE_GYRO_SPI_MPU6500
36 #define MOTOR1_PIN PC6
37 #define MOTOR2_PIN PC7
38 #define MOTOR3_PIN PC8
39 #define MOTOR4_PIN PC9
40 #define MOTOR5_PIN PA0
41 #define MOTOR6_PIN PA1
42 #define MOTOR7_PIN PB8
43 #define MOTOR8_PIN PB9
44 #define RX_PPM_PIN PA2
45 #define RX_PWM1_PIN PA2
46 #define UART2_TX_PIN PA2
47 #define UART3_TX_PIN PB10
48 #define UART2_RX_PIN PA3
49 #define UART3_RX_PIN PB11
50 #define LED0_PIN PA8
51 #define LED1_PIN PB4
52 #define LED2_PIN PC2
53 #define SPI2_SCK_PIN PB13
54 #define SPI2_MISO_PIN PB14
55 #define SPI2_MOSI_PIN PB15
56 #define ADC_VBAT_PIN PC4
57 #define ADC_CURR_PIN PC5
58 #define GYRO_1_EXTI_PIN PB5
59 #define GYRO_1_CS_PIN PB12
61 #define TIMER_PIN_MAPPING \
62 TIMER_PIN_MAP( 0, PA2 , 1, 0) \
63 TIMER_PIN_MAP( 1, PC6 , 2, 0) \
64 TIMER_PIN_MAP( 2, PC7 , 2, 0) \
65 TIMER_PIN_MAP( 3, PC8 , 2, 1) \
66 TIMER_PIN_MAP( 4, PC9 , 2, 0) \
67 TIMER_PIN_MAP( 5, PA0 , 2, 0) \
68 TIMER_PIN_MAP( 6, PA1 , 2, 0) \
69 TIMER_PIN_MAP( 7, PB8 , 1, 0) \
70 TIMER_PIN_MAP( 8, PB9 , 1, -1)
74 #define ADC1_DMA_OPT 1
76 //TODO #define MAG_BUSTYPE SLAVE
77 #define SYSTEM_HSE_MHZ 25
78 #define USE_SPI_GYRO
79 #define GYRO_1_SPI_INSTANCE SPI2
80 #define GYRO_1_ALIGN CW270_DEG
81 #define GYRO_1_ALIGN_YAW 2700