Enable AT32 ADC for internal measurements (#12549)
[betaflight.git] / src / config / NEUTRONRCF435 / config.h
blob6497892d56d6a6c36c27cba8a39e48db88ace4f7
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 #define FC_TARGET_MCU AT32F435G
24 #define BOARD_NAME NEUTRONRCF435
25 #define MANUFACTURER_ID NERC
27 #define LED0_PIN PC4
29 #define USE_GYRO
30 #define USE_ACC
31 #define USE_ACCGYRO_BMI270
32 #define GYRO_1_CS_PIN PA15
33 #define GYRO_1_SPI_INSTANCE SPI1
34 #define GYRO_1_ALIGN CW270_DEG
36 // MPU6000 interrupts
37 #define USE_EXTI
38 #define USE_GYRO_EXTI
39 #define GYRO_1_EXTI_PIN PB8
41 #define SPI1_SCK_PIN PA5
42 #define SPI2_SCK_PIN PB13
43 #define SPI3_SCK_PIN PB3
44 #define SPI1_SDI_PIN PA6
45 #define SPI2_SDI_PIN PB14
46 #define SPI3_SDI_PIN PB4
47 #define SPI1_SDO_PIN PA7
48 #define SPI2_SDO_PIN PB15
49 #define SPI3_SDO_PIN PB5
51 #define USE_FLASH
52 #define USE_FLASH_W25Q128FV
53 #define FLASH_CS_PIN PB9
54 #define FLASH_SPI_INSTANCE SPI3
56 #define I2C2_SCL_PIN PB10
57 #define I2C2_SDA_PIN PB11
59 #define BARO_I2C_INSTANCE I2CDEV_2
60 #define USE_BARO
61 #define USE_BARO_BMP280
62 #define USE_BARO_DPS310
64 #define USE_MAX7456
65 #define MAX7456_SPI_INSTANCE SPI2
66 #define MAX7456_SPI_CS_PIN PB12
68 #define ADC1_DMA_OPT 1