AIRBOTF435 has AT32F435RMT7 processor (#12570)
[betaflight.git] / src / config / NEUTRONRCF411SX1280 / config.h
blob5c7e9451732de76b14c28727de729e48f25ce494
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/>.
22 #pragma once
24 #define FC_TARGET_MCU STM32F411
26 #define BOARD_NAME NEUTRONRCF411SX1280
27 #define MANUFACTURER_ID NERC
29 #define USE_ACC
30 #define USE_ACC_SPI_ICM42688P
31 #define USE_ACC_SPI_ICM42605
32 #define USE_GYRO
33 #define USE_GYRO_SPI_ICM42688P
34 #define USE_GYRO_SPI_ICM42605
35 #define USE_GYRO_SPI_ICM20689
36 #define USE_ACC_SPI_ICM20689
37 #define USE_ACC_SPI_MPU6000
38 #define USE_GYRO_SPI_MPU6000
39 #define USE_MAX7456
40 #define USE_RX_SPI
41 #define USE_RX_EXPRESSLRS
42 #define USE_RX_EXPRESSLRS_TELEMETRY
43 #define USE_RX_SX1280
44 #define RX_CHANNELS_AETR
45 #define RX_SPI_DEFAULT_PROTOCOL RX_SPI_EXPRESSLRS
46 #define DEFAULT_RX_FEATURE FEATURE_RX_SPI
47 #define RX_SPI_PROTOCOL EXPRESSLRS
48 #define RX_EXPRESSLRS_TIMER_INSTANCE TIM5
49 #define RX_EXPRESSLRS_SPI_RESET_PIN PB9
50 #define RX_EXPRESSLRS_SPI_BUSY_PIN PA13
51 #define RX_SPI_CS PA15
52 #define RX_SPI_EXTI PC13
53 #define RX_SPI_BIND PB2
54 #define RX_SPI_LED PC15
56 #define BEEPER_PIN PA14
57 #define MOTOR1_PIN PB8
58 #define MOTOR2_PIN PA0
59 #define MOTOR3_PIN PB10
60 #define MOTOR4_PIN PB7
61 #define LED_STRIP_PIN PB1
62 #define UART1_TX_PIN PA9
63 #define UART2_TX_PIN PA2
64 #define UART1_RX_PIN PA10
65 #define UART2_RX_PIN PA3
66 #define LED0_PIN PC14
67 #define SPI1_SCK_PIN PA5
68 #define SPI2_SCK_PIN PB13
69 #define SPI3_SCK_PIN PB3
70 #define SPI1_SDI_PIN PA6
71 #define SPI2_SDI_PIN PB14
72 #define SPI3_SDI_PIN PB4
73 #define SPI1_SDO_PIN PA7
74 #define SPI2_SDO_PIN PB15
75 #define SPI3_SDO_PIN PB5
76 #define ADC_VBAT_PIN PA1
77 #define ADC_CURR_PIN PB0
78 #define FLASH_CS_PIN PA8
79 #define MAX7456_SPI_CS_PIN PB12
80 #define RX_SPI_CS_PIN PA15
81 #define RX_SPI_EXTI_PIN PC13
82 #define RX_SPI_BIND_PIN PB2
83 #define RX_SPI_LED_PIN PC15
84 #define RX_SPI_EXPRESSLRS_RESET_PIN PB9
85 #define RX_SPI_EXPRESSLRS_BUSY_PIN PA13
86 #define GYRO_1_EXTI_PIN PB6
87 #define GYRO_1_CS_PIN PA4
89 #define TIMER_PIN_MAPPING \
90 TIMER_PIN_MAP( 0, PB1 , 2, 0) \
91 TIMER_PIN_MAP( 1, PB8 , 1, 0) \
92 TIMER_PIN_MAP( 2, PA0 , 1, 0) \
93 TIMER_PIN_MAP( 3, PB10, 1, 0) \
94 TIMER_PIN_MAP( 4, PB7 , 1, 0)
97 #define ADC1_DMA_OPT 0
99 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
100 #define DEFAULT_DSHOT_BURST DSHOT_DMAR_OFF
101 #define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF
102 //TODO #define MOTOR_PWM_PROTOCOL DSHOT600
103 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
104 #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
105 #define DEFAULT_CURRENT_METER_SCALE 165
106 #define BEEPER_INVERTED
107 #define MAX7456_SPI_INSTANCE SPI2
108 //TODO #define LED_INVERSION 1
109 #define FLASH_SPI_INSTANCE SPI2
110 #define USE_SPI_GYRO
111 #define GYRO_1_SPI_INSTANCE SPI1
112 #define GYRO_1_ALIGN CW0_DEG
113 #define GYRO_1_ALIGN_YAW -45