-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split the AT-START-F435 and REVO-AT configs out from AT32F435/target.h
- Loading branch information
1 parent
3e8f2f0
commit 3a5cddf
Showing
6 changed files
with
139 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* This file is part of Betaflight. | ||
* | ||
* Betaflight is free software. You can redistribute this software | ||
* and/or modify this software under the terms of the GNU General | ||
* Public License as published by the Free Software Foundation, | ||
* either version 3 of the License, or (at your option) any later | ||
* version. | ||
* | ||
* Betaflight is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
* See the GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public | ||
* License along with this software. | ||
* | ||
* If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#define FC_TARGET_MCU AT32F435 | ||
|
||
#define BOARD_NAME ATSTARTF435 | ||
#define MANUFACTURER_ID AT | ||
|
||
// AT-START-F435 V1.0 LED assignments to use as a default | ||
#define LED0_PIN PD13 // Labelled LED2 Red | ||
#define LED1_PIN PD14 // Labelled LED3 Amber | ||
#define LED2_PIN PD15 // Labelled LED4 Green | ||
|
||
// AT-START-F435 J7 connector SPI 2 | ||
#define SPI2_SCK_PIN PD1 | ||
#define SPI2_MISO_PIN PC2 | ||
#define SPI2_MOSI_PIN PD4 | ||
|
||
#define J7_NSS PD0 | ||
|
||
#define GYRO_1_CS_PIN J7_NSS | ||
#define GYRO_1_SPI_INSTANCE SPI2 | ||
|
||
#define USE_EXTI | ||
#define USE_GYRO_EXTI | ||
#define GYRO_1_EXTI_PIN PB11 | ||
|
||
#define USE_ACCGYRO_BMI160 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* This file is part of Betaflight. | ||
* | ||
* Betaflight is free software. You can redistribute this software | ||
* and/or modify this software under the terms of the GNU General | ||
* Public License as published by the Free Software Foundation, | ||
* either version 3 of the License, or (at your option) any later | ||
* version. | ||
* | ||
* Betaflight is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
* See the GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public | ||
* License along with this software. | ||
* | ||
* If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#define FC_TARGET_MCU AT32F435 | ||
|
||
// REVO with STM32F405 swapped for an AT32F435 | ||
|
||
#define BOARD_NAME REVO_AT | ||
#define MANUFACTURER_ID OPEN | ||
|
||
#define LED0_PIN PB5 | ||
|
||
#define USE_GYRO_SPI_MPU6000 | ||
#define USE_ACC_SPI_MPU6000 | ||
#define GYRO_1_CS_PIN PA4 | ||
#define GYRO_1_SPI_INSTANCE SPI1 | ||
#define GYRO_1_ALIGN CW270_DEG | ||
|
||
// MPU6000 interrupts | ||
#define USE_EXTI | ||
#define USE_GYRO_EXTI | ||
#define GYRO_1_EXTI_PIN PC4 | ||
|
||
#define SPI1_SCK_PIN PA5 | ||
#define SPI1_MISO_PIN PA6 | ||
#define SPI1_MOSI_PIN PA7 | ||
|
||
#define SPI3_SCK_PIN PC10 | ||
#define SPI3_MISO_PIN PC11 | ||
#define SPI3_MOSI_PIN PC12 | ||
|
||
#define USE_FLASH_M25P16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters