1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 09:45:37 +03:00

Added IRCSYNERGYF3 target

This commit is contained in:
Andrey Mironov 2018-07-12 15:46:08 +03:00
parent ac2f39a10c
commit ea74659bcb
3 changed files with 29 additions and 0 deletions

View file

@ -26,6 +26,8 @@
#define TARGET_BOARD_IDENTIFIER "ZCF3" #define TARGET_BOARD_IDENTIFIER "ZCF3"
#elif defined(FLIP32F3OSD) #elif defined(FLIP32F3OSD)
#define TARGET_BOARD_IDENTIFIER "FLF3" #define TARGET_BOARD_IDENTIFIER "FLF3"
#elif defined(IRCSYNERGYF3)
#define TARGET_BOARD_IDENTIFIER "ISF3"
#else #else
#define TARGET_BOARD_IDENTIFIER "SRF3" #define TARGET_BOARD_IDENTIFIER "SRF3"
#endif #endif
@ -47,6 +49,9 @@
#undef USE_RTC_TIME #undef USE_RTC_TIME
#undef USE_RX_MSP #undef USE_RX_MSP
#undef USE_ESC_SENSOR_INFO #undef USE_ESC_SENSOR_INFO
#if defined(IRCSYNERGYF3)
#undef USE_LED_STRIP
#endif
#if defined(ZCOREF3) #if defined(ZCOREF3)
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT
@ -58,9 +63,11 @@
#define LED0_PIN PB3 #define LED0_PIN PB3
#endif #endif
#if !defined(IRCSYNERGYF3)
#define USE_BEEPER #define USE_BEEPER
#define BEEPER_PIN PC15 #define BEEPER_PIN PC15
#define BEEPER_INVERTED #define BEEPER_INVERTED
#endif
#define USE_EXTI #define USE_EXTI
#define MPU_INT_EXTI PC13 #define MPU_INT_EXTI PC13
@ -102,6 +109,17 @@
#define MPU6500_CS_PIN PB9 #define MPU6500_CS_PIN PB9
#define MPU6500_SPI_INSTANCE SPI1 #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 #else
#define USE_GYRO_MPU6050 #define USE_GYRO_MPU6050
#define GYRO_MPU6050_ALIGN CW270_DEG #define GYRO_MPU6050_ALIGN CW270_DEG
@ -141,8 +159,10 @@
#define MAG_INT_EXTI PC14 #define MAG_INT_EXTI PC14
#endif #endif
#if !defined(IRCSYNERGYF3)
#define USE_FLASHFS #define USE_FLASHFS
#define USE_FLASH_M25P16 #define USE_FLASH_M25P16
#endif
#define USE_UART1 #define USE_UART1
#define USE_UART2 #define USE_UART2
@ -181,6 +201,7 @@
#define USE_SPI #define USE_SPI
#define USE_SPI_DEVICE_2 // PB12,13,14,15 on AF5 #define USE_SPI_DEVICE_2 // PB12,13,14,15 on AF5
#if !defined(IRCSYNERGYF3)
#define FLASH_CS_PIN PB12 #define FLASH_CS_PIN PB12
#define FLASH_SPI_INSTANCE SPI2 #define FLASH_SPI_INSTANCE SPI2
@ -195,6 +216,7 @@
#define USE_OSD #define USE_OSD
#define USE_OSD_OVER_MSP_DISPLAYPORT #define USE_OSD_OVER_MSP_DISPLAYPORT
#define USE_SLOW_MSP_DISPLAYPORT_RATE_WHEN_UNARMED #define USE_SLOW_MSP_DISPLAYPORT_RATE_WHEN_UNARMED
#endif
#define USE_MSP_CURRENT_METER #define USE_MSP_CURRENT_METER
@ -205,10 +227,12 @@
#undef USE_UART1_TX_DMA #undef USE_UART1_TX_DMA
#endif #endif
#if !defined(IRCSYNERGYF3)
#define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
#define DEFAULT_RX_FEATURE FEATURE_RX_PPM #define DEFAULT_RX_FEATURE FEATURE_RX_PPM
#define DEFAULT_FEATURES (FEATURE_RSSI_ADC | FEATURE_TELEMETRY) #define DEFAULT_FEATURES (FEATURE_RSSI_ADC | FEATURE_TELEMETRY)
#endif
#define USE_SERIAL_4WAY_BLHELI_INTERFACE #define USE_SERIAL_4WAY_BLHELI_INTERFACE

View file

@ -19,7 +19,12 @@ TARGET_SRC += \
drivers/accgyro/accgyro_mpu6500.c \ drivers/accgyro/accgyro_mpu6500.c \
drivers/accgyro/accgyro_spi_mpu6500.c drivers/accgyro/accgyro_spi_mpu6500.c
else else
ifeq ($(TARGET), IRCSYNERGYF3)
TARGET_SRC += \
drivers/accgyro/accgyro_spi_mpu6000.c
else
TARGET_SRC += \ TARGET_SRC += \
drivers/accgyro/accgyro_mpu6050.c drivers/accgyro/accgyro_mpu6050.c
endif endif
endif endif
endif