Merge pull request #7485 from mikeller/add_led_strip_to_f3

Re-added minimal LED_STRIP support to F3.
This commit is contained in:
Michael Keller 2019-01-29 07:27:36 +13:00 committed by GitHub
commit fc289e95b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
30 changed files with 76 additions and 20 deletions

View File

@ -1,6 +1,9 @@
F3_TARGETS += $(TARGET)
FEATURES = VCP ONBOARDFLASH
FEATURE_CUT_LEVEL = 1
TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_mpu6050.c \

View File

@ -1,4 +1,7 @@
F3_TARGETS += $(TARGET)
FEATURE_CUT_LEVEL = 0
HSE_VALUE = 12000000
TARGET_SRC = \

View File

@ -1,6 +1,9 @@
F3_TARGETS += $(TARGET)
FEATURES = VCP
FEATURE_CUT_LEVEL = 0
TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_mpu6050.c \

View File

@ -1,6 +1,9 @@
F3_TARGETS += $(TARGET)
FEATURES = VCP
FEATURE_CUT_LEVEL = 1
TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_mpu6500.c \

View File

@ -2,7 +2,7 @@ F3_TARGETS += $(TARGET)
FEATURES = VCP SDCARD_SPI
FEATURE_CUT_LEVEL = 7
FEATURE_CUT_LEVEL = 10
TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \

View File

@ -2,7 +2,7 @@ F3_TARGETS += $(TARGET)
FEATURES = VCP SDCARD_SPI
FEATURE_CUT_LEVEL = 1
FEATURE_CUT_LEVEL = 3
TARGET_SRC = \
drivers/compass/compass_hmc5883l.c \

View File

@ -2,7 +2,7 @@ F3_TARGETS += $(TARGET)
FEATURES = VCP
FEATURE_CUT_LEVEL = 0
FEATURE_CUT_LEVEL = 1
TARGET_SRC = \
i2c_bst.c \

View File

@ -1,6 +1,9 @@
F3_TARGETS += $(TARGET)
FEATURES = VCP ONBOARDFLASH
FEATURE_CUT_LEVEL = 1
TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_spi_mpu6000.c \

View File

@ -1,6 +1,9 @@
F3_TARGETS += $(TARGET)
FEATURES = VCP
FEATURE_CUT_LEVEL = 0
TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_mpu6500.c \

View File

@ -1,6 +1,9 @@
F3_TARGETS += $(TARGET)
FEATURES = VCP
FEATURE_CUT_LEVEL = 0
TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_spi_mpu6000.c

View File

@ -2,7 +2,7 @@ F3_TARGETS += $(TARGET)
FEATURES = VCP SDCARD_SPI
FEATURE_CUT_LEVEL = 4
FEATURE_CUT_LEVEL = 10
TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \

View File

@ -3,11 +3,11 @@ F3_TARGETS += $(TARGET)
ifeq ($(TARGET), FURYF3OSD)
FEATURES += VCP ONBOARDFLASH
FEATURE_CUT_LEVEL = 4
FEATURE_CUT_LEVEL = 8
else
FEATURES += VCP SDCARD_SPI
FEATURE_CUT_LEVEL = 3
FEATURE_CUT_LEVEL = 4
endif
TARGET_SRC = \

View File

@ -2,7 +2,7 @@ F3_TARGETS += $(TARGET)
FEATURES = VCP ONBOARDFLASH
FEATURE_CUT_LEVEL = 2
FEATURE_CUT_LEVEL = 8
TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \

View File

@ -1,6 +1,9 @@
F3_TARGETS += $(TARGET)
FEATURES = ONBOARDFLASH
FEATURE_CUT_LEVEL = 1
TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_mpu6500.c \

View File

@ -1,6 +1,9 @@
F3_TARGETS += $(TARGET)
FEATURES = VCP
FEATURE_CUT_LEVEL = 0
TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \
drivers/display_ug2864hsweg01.c \

View File

@ -1,6 +1,9 @@
F3_TARGETS += $(TARGET)
FEATURES = ONBOARDFLASH VCP
FEATURE_CUT_LEVEL = 0
TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_spi_mpu6000.c

View File

@ -3,7 +3,7 @@ F3_TARGETS += $(TARGET)
FEATURES = VCP SDCARD_SPI
ifeq ($(TARGET), LUXV2_RACE)
FEATURE_CUT_LEVEL = 1
FEATURE_CUT_LEVEL = 6
else
FEATURE_CUT_LEVEL = 0
endif

View File

@ -1,6 +1,9 @@
F3_TARGETS += $(TARGET)
FEATURES = VCP ONBOARDFLASH
FEATURE_CUT_LEVEL = 1
TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_mpu6050.c \

View File

@ -1,6 +1,9 @@
F3_TARGETS += $(TARGET)
FEATURES =
FEATURE_CUT_LEVEL = 0
TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_mpu6050.c \

View File

@ -2,7 +2,8 @@ F3_TARGETS += $(TARGET)
FEATURES = ONBOARDFLASH
FEATURE_CUT_LEVEL = 2
FEATURE_CUT_LEVEL = 6
TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_spi_mpu6000.c \

View File

@ -1,6 +1,9 @@
F3_TARGETS += $(TARGET)
FEATURES = VCP ONBOARDFLASH
FEATURE_CUT_LEVEL = 0
TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_mpu6050.c \

View File

@ -1,6 +1,9 @@
F3_TARGETS += $(TARGET)
FEATURES = VCP
FEATURE_CUT_LEVEL = 0
TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_mpu6050.c \

View File

@ -12,13 +12,13 @@ TARGET_SRC = \
drivers/compass/compass_qmc5883l.c
ifeq ($(TARGET), FLIP32F3OSD)
FEATURE_CUT_LEVEL = 1
FEATURE_CUT_LEVEL = 2
TARGET_SRC += \
drivers/accgyro/accgyro_mpu6500.c
else
ifeq ($(TARGET), ZCOREF3)
FEATURE_CUT_LEVEL = 1
FEATURE_CUT_LEVEL = 2
TARGET_SRC += \
drivers/accgyro/accgyro_mpu6500.c \

View File

@ -5,7 +5,7 @@ FEATURES = VCP SDCARD_SPI
ifeq ($(TARGET), AIORACERF3)
FEATURE_CUT_LEVEL = 3
else
FEATURE_CUT_LEVEL = 7
FEATURE_CUT_LEVEL = 8
endif
TARGET_SRC = \

View File

@ -2,7 +2,7 @@ F3_TARGETS += $(TARGET)
FEATURES = VCP SDCARD_SPI
FEATURE_CUT_LEVEL = 6
FEATURE_CUT_LEVEL = 8
TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \

View File

@ -1,7 +1,8 @@
F3_TARGETS += $(TARGET)
FEATURES = VCP SDCARD_SPI
FEATURE_CUT_LEVEL = 8
FEATURE_CUT_LEVEL = 10
TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \

View File

@ -2,7 +2,7 @@ F3_TARGETS += $(TARGET)
FEATURES = VCP SDCARD_SPI ONBOARDFLASH
FEATURE_CUT_LEVEL = 4
FEATURE_CUT_LEVEL = 8
TARGET_SRC = \
drivers/accgyro/accgyro_fake.c \

View File

@ -1,6 +1,9 @@
F3_TARGETS += $(TARGET)
FEATURES = VCP ONBOARDFLASH
FEATURE_CUT_LEVEL = 0
TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \
drivers/flash_m25p16.c \

View File

@ -1,6 +1,9 @@
F3_TARGETS += $(TARGET)
FEATURES = ONBOARDFLASH
FEATURE_CUT_LEVEL = 1
TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_spi_mpu6000.c \

View File

@ -170,19 +170,26 @@
#define USE_TELEMETRY_CRSF
#define USE_TELEMETRY_SRXL
#if ((FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 10))
#if ((FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 12))
#define USE_CMS
#define USE_CAMERA_CONTROL
#define USE_MSP_DISPLAYPORT
#define USE_MSP_OVER_TELEMETRY
#define USE_RCDEVICE
#define USE_VIRTUAL_CURRENT_METER
#define USE_LED_STRIP
#endif
#if ((FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 11))
#define USE_VTX_COMMON
#define USE_VTX_CONTROL
#define USE_VTX_SMARTAUDIO
#define USE_VTX_TRAMP
#endif
#if ((FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 10))
#define USE_VIRTUAL_CURRENT_METER
#define USE_CAMERA_CONTROL
#define USE_ESC_SENSOR
#define USE_SERIAL_4WAY_BLHELI_BOOTLOADER
#define USE_RCDEVICE
#endif
#if ((FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 9))
@ -269,7 +276,6 @@
#define USE_SIGNATURE
#define USE_ABSOLUTE_CONTROL
#define USE_HOTT_TEXTMODE
#define USE_LED_STRIP
#define USE_LED_STRIP_STATUS_MODE
#define USE_VARIO
#define USE_RX_LINK_QUALITY_INFO