From 420c4efd81f1e34f15445951a23131a6fd736dda Mon Sep 17 00:00:00 2001 From: MATEKSYS Date: Fri, 21 Dec 2018 12:15:17 +0800 Subject: [PATCH] Add flash blackbox to MATEKF722SE target --- src/main/target/MATEKF722SE/target.h | 5 +++++ src/main/target/MATEKF722SE/target.mk | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/target/MATEKF722SE/target.h b/src/main/target/MATEKF722SE/target.h index 0c0671715c..897bf15c2e 100755 --- a/src/main/target/MATEKF722SE/target.h +++ b/src/main/target/MATEKF722SE/target.h @@ -122,6 +122,11 @@ #define SDCARD_DMA_STREAM_TX_FULL DMA1_Stream5 #define SDCARD_DMA_CHANNEL 0 +#define USE_FLASHFS +#define USE_FLASH_M25P16 +#define FLASH_SPI_INSTANCE SPI3 +#define FLASH_CS_PIN PD2 + // *************** UART ***************************** #define USE_VCP diff --git a/src/main/target/MATEKF722SE/target.mk b/src/main/target/MATEKF722SE/target.mk index 4b1439a347..d13733e4c8 100755 --- a/src/main/target/MATEKF722SE/target.mk +++ b/src/main/target/MATEKF722SE/target.mk @@ -1,5 +1,5 @@ F7X2RE_TARGETS += $(TARGET) -FEATURES += VCP SDCARD_SPI +FEATURES += VCP ONBOARDFLASH SDCARD_SPI TARGET_SRC = \ drivers/accgyro/accgyro_mpu.c \