mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Merge pull request #6342 from DieHertz/bfdev-diehertz-immersionrc-synergy-f3-target
Added IRCSYNERGYF3 target
This commit is contained in:
commit
e5d5e92bda
3 changed files with 29 additions and 0 deletions
0
src/main/target/SPRACINGF3/IRCSYNERGYF3.mk
Normal file
0
src/main/target/SPRACINGF3/IRCSYNERGYF3.mk
Normal file
|
@ -26,6 +26,8 @@
|
|||
#define TARGET_BOARD_IDENTIFIER "ZCF3"
|
||||
#elif defined(FLIP32F3OSD)
|
||||
#define TARGET_BOARD_IDENTIFIER "FLF3"
|
||||
#elif defined(IRCSYNERGYF3)
|
||||
#define TARGET_BOARD_IDENTIFIER "ISF3"
|
||||
#else
|
||||
#define TARGET_BOARD_IDENTIFIER "SRF3"
|
||||
#endif
|
||||
|
@ -47,6 +49,9 @@
|
|||
#undef USE_RTC_TIME
|
||||
#undef USE_RX_MSP
|
||||
#undef USE_ESC_SENSOR_INFO
|
||||
#if defined(IRCSYNERGYF3)
|
||||
#undef USE_LED_STRIP
|
||||
#endif
|
||||
|
||||
#if defined(ZCOREF3)
|
||||
|
||||
|
@ -56,9 +61,11 @@
|
|||
#define LED0_PIN PB3
|
||||
#endif
|
||||
|
||||
#if !defined(IRCSYNERGYF3)
|
||||
#define USE_BEEPER
|
||||
#define BEEPER_PIN PC15
|
||||
#define BEEPER_INVERTED
|
||||
#endif
|
||||
|
||||
#define USE_EXTI
|
||||
#define MPU_INT_EXTI PC13
|
||||
|
@ -100,6 +107,17 @@
|
|||
#define MPU6500_CS_PIN PB9
|
||||
#define MPU6500_SPI_INSTANCE SPI1
|
||||
|
||||
#elif defined(IRCSYNERGYF3)
|
||||
#define GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define GYRO_MPU6000_ALIGN CW270_DEG
|
||||
|
||||
#define ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define ACC_MPU6000_ALIGN CW270_DEG
|
||||
|
||||
#define MPU6000_CS_PIN PB12
|
||||
#define MPU6000_SPI_INSTANCE SPI2
|
||||
#else
|
||||
#define USE_GYRO_MPU6050
|
||||
#define GYRO_MPU6050_ALIGN CW270_DEG
|
||||
|
@ -139,8 +157,10 @@
|
|||
#define MAG_INT_EXTI PC14
|
||||
#endif
|
||||
|
||||
#if !defined(IRCSYNERGYF3)
|
||||
#define USE_FLASHFS
|
||||
#define USE_FLASH_M25P16
|
||||
#endif
|
||||
|
||||
#define USE_UART1
|
||||
#define USE_UART2
|
||||
|
@ -179,6 +199,7 @@
|
|||
#define USE_SPI
|
||||
#define USE_SPI_DEVICE_2 // PB12,13,14,15 on AF5
|
||||
|
||||
#if !defined(IRCSYNERGYF3)
|
||||
#define FLASH_CS_PIN PB12
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
|
||||
|
@ -193,6 +214,7 @@
|
|||
#define USE_OSD
|
||||
#define USE_OSD_OVER_MSP_DISPLAYPORT
|
||||
#define USE_SLOW_MSP_DISPLAYPORT_RATE_WHEN_UNARMED
|
||||
#endif
|
||||
|
||||
#define USE_MSP_CURRENT_METER
|
||||
|
||||
|
@ -203,10 +225,12 @@
|
|||
#undef USE_UART1_TX_DMA
|
||||
#endif
|
||||
|
||||
#if !defined(IRCSYNERGYF3)
|
||||
#define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
|
||||
|
||||
#define DEFAULT_RX_FEATURE FEATURE_RX_PPM
|
||||
#define DEFAULT_FEATURES (FEATURE_RSSI_ADC | FEATURE_TELEMETRY)
|
||||
#endif
|
||||
|
||||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||
|
||||
|
|
|
@ -19,7 +19,12 @@ TARGET_SRC += \
|
|||
drivers/accgyro/accgyro_mpu6500.c \
|
||||
drivers/accgyro/accgyro_spi_mpu6500.c
|
||||
else
|
||||
ifeq ($(TARGET), IRCSYNERGYF3)
|
||||
TARGET_SRC += \
|
||||
drivers/accgyro/accgyro_spi_mpu6000.c
|
||||
else
|
||||
TARGET_SRC += \
|
||||
drivers/accgyro/accgyro_mpu6050.c
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue