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
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 AT32F435
24 // REVO with STM32F405 swapped for an AT32F435
26 #define BOARD_NAME REVO_AT
27 #define MANUFACTURER_ID OPEN
33 #define USE_GYRO_SPI_MPU6000
35 #define USE_ACC_SPI_MPU6000
36 #define GYRO_1_CS_PIN PA4
37 #define GYRO_1_SPI_INSTANCE SPI1
38 #define GYRO_1_ALIGN CW270_DEG
43 #define GYRO_1_EXTI_PIN PC4
45 #define SPI1_SCK_PIN PA5
46 #define SPI3_SCK_PIN PC10
47 #define SPI1_SDI_PIN PA6
48 #define SPI3_SDI_PIN PC11
49 #define SPI1_SDO_PIN PA7
50 #define SPI3_SDO_PIN PC12
53 #define USE_FLASH_M25P16
54 #define FLASH_CS_PIN PB3
55 #define FLASH_SPI_INSTANCE SPI3
57 #define I2C1_SCL_PIN PB8
58 #define I2C1_SDA_PIN PB9
60 #define I2C2_SCL_PIN PB10
61 #define I2C2_SDA_PIN PB11
63 #define MAG_I2C_INSTANCE I2CDEV_1
65 #define USE_MAG_HMC5883
67 #define BARO_I2C_INSTANCE I2CDEV_1
69 #define USE_BARO_MS5611