mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
Convert new targets
This commit is contained in:
parent
9ef9f98310
commit
017c20226f
4 changed files with 10 additions and 9 deletions
11
src/main/target/HAKRCF722/target.h
Executable file → Normal file
11
src/main/target/HAKRCF722/target.h
Executable file → Normal file
|
@ -47,20 +47,21 @@
|
|||
#define SPI1_MISO_PIN PA6
|
||||
#define SPI1_MOSI_PIN PA7
|
||||
|
||||
#define MPU6000_CS_PIN PA4
|
||||
#define MPU6000_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
|
||||
#define USE_EXTI
|
||||
#define MPU_INT_EXTI PC4
|
||||
#define USE_GYRO_EXTI
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define USE_MPU_DATA_READY_SIGNAL
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define GYRO_MPU6000_ALIGN CW270_DEG
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define ACC_MPU6000_ALIGN CW270_DEG
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
|
||||
#define LED0_PIN PC14
|
||||
|
|
|
@ -41,7 +41,8 @@
|
|||
#define SPI1_MOSI_PIN PA7
|
||||
|
||||
#define USE_EXTI
|
||||
#define MPU_INT_EXTI PC4
|
||||
#define USE_GYRO_EXTI
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define USE_MPU_DATA_READY_SIGNAL
|
||||
|
||||
#define USE_GYRO
|
||||
|
|
|
@ -38,7 +38,7 @@ resource SPI_PREINIT_IPU 2 A15 // SDCARD
|
|||
resource gyro_cs 1 C4
|
||||
set gyro_1_bustype = SPI
|
||||
set gyro_1_spibus = 1
|
||||
#set gyro_1_hardware = MPU6500 # Not working (yet)
|
||||
#set gyro_1_hardware = MPU6500 # Not working (yet ... will it ever?)
|
||||
|
||||
# Timers
|
||||
# First four timers
|
||||
|
|
|
@ -37,7 +37,6 @@
|
|||
#define USE_MPU_DATA_READY_SIGNAL
|
||||
//#define DEBUG_MPU_DATA_READY_INTERRUPT
|
||||
#define USE_GYRO_EXTI
|
||||
#define GYRO_1_EXTI_PIN PB15 // XXX Should be gone
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_GYRO
|
||||
|
@ -50,7 +49,7 @@
|
|||
#define GYRO_1_CS_PIN NONE
|
||||
#define GYRO_1_ALIGN ALIGN_DEFAULT
|
||||
#define ACC_1_ALIGN ALIGN_DEFAULT
|
||||
#define GYRO_1_EXTI_PIN NONE
|
||||
#define GYRO_1_EXTI_PIN PB15 // XXX Should be gone
|
||||
|
||||
#define GYRO_2_SPI_INSTANCE SPI1
|
||||
#define GYRO_2_CS_PIN NONE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue