Fix Config (#12448)
[betaflight.git] / src / config / ARESF7 / config.h
blob5023f8a49ac8ecc1c1a77076a838077fe1062573
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 STM32F7X2
30 #define BOARD_NAME ARESF7
31 #define MANUFACTURER_ID RCTI
33 #define USE_ACC_SPI_MPU6500
34 #define USE_GYRO_SPI_MPU6500
35 #define USE_FLASH_W25N01G
36 #define USE_MAX7456
38 #define BEEPER_PIN PC15
39 #define MOTOR1_PIN PC6
40 #define MOTOR2_PIN PC7
41 #define MOTOR3_PIN PC8
42 #define MOTOR4_PIN PC9
43 #define RX_PPM_PIN PA9
44 #define LED_STRIP_PIN PB0
45 #define UART1_TX_PIN PA9
46 #define UART2_TX_PIN PA2
47 #define UART3_TX_PIN PC10
48 #define UART4_TX_PIN PA0
49 #define UART5_TX_PIN PC12
50 #define UART1_RX_PIN PA10
51 #define UART2_RX_PIN PA3
52 #define UART3_RX_PIN PC11
53 #define UART4_RX_PIN PA1
54 #define UART5_RX_PIN PD2
55 #define I2C2_SCL_PIN PB10
56 #define I2C2_SDA_PIN PB11
57 #define LED0_PIN PC0
58 #define SPI1_SCK_PIN PA5
59 #define SPI2_SCK_PIN PB13
60 #define SPI3_SCK_PIN PB3
61 #define SPI1_MISO_PIN PA6
62 #define SPI2_MISO_PIN PB14
63 #define SPI3_MISO_PIN PB4
64 #define SPI1_MOSI_PIN PA7
65 #define SPI2_MOSI_PIN PB15
66 #define SPI3_MOSI_PIN PB5
67 #define CAMERA_CONTROL_PIN PB6
68 #define ADC_VBAT_PIN PC2
69 #define ADC_RSSI_PIN PC4
70 #define ADC_CURR_PIN PC3
71 #define PINIO1_PIN PB1
72 #define FLASH_CS_PIN PB12
73 #define MAX7456_SPI_CS_PIN PA15
74 #define GYRO_1_EXTI_PIN PC14
75 #define GYRO_1_CS_PIN PA4
76 #define USB_DETECT_PIN PC1
78 #define TIMER_PIN_MAPPING \
79 TIMER_PIN_MAP( 0, PA9 , 1, 0) \
80 TIMER_PIN_MAP( 1, PB0 , 3, 1) \
81 TIMER_PIN_MAP( 2, PB6 , 1, 0) \
82 TIMER_PIN_MAP( 3, PC6 , 1, 0) \
83 TIMER_PIN_MAP( 4, PC7 , 1, 0) \
84 TIMER_PIN_MAP( 5, PC8 , 1, 0) \
85 TIMER_PIN_MAP( 6, PC9 , 1, 0)
89 #define ADC1_DMA_OPT 1
91 //TODO #define BARO_BUSTYPE I2C
92 #define BARO_I2C_INSTANCE (I2CDEV_2)
93 //TODO #define SERIALRX_PROVIDER SBUS
94 //TODO #define BLACKBOX_DEVICE SPIFLASH
95 //TODO #define DSHOT_BURST ON
96 //TODO #define CURRENT_METER ADC
97 //TODO #define BATTERY_METER ADC
98 //TODO #define IBATA_SCALE 366
99 #define BEEPER_INVERTED
100 //TODO #define BEEPER_OD OFF
101 //TODO #define OSD_CRAFT_NAME_POS 2048
102 #define MAX7456_SPI_INSTANCE SPI3
103 //TODO #define PINIO_CONFIG 129,1,1,1
104 //TODO #define PINIO_BOX 40,255,255,255
105 #define FLASH_SPI_INSTANCE SPI2
106 #define USE_SPI_GYRO
107 #define GYRO_1_SPI_INSTANCE SPI1
108 #define GYRO_1_ALIGN CW180_DEG
109 #define GYRO_1_ALIGN_YAW 1800