From a19bf9b9a911d5471ee1af8cadf530662e6ced46 Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Sun, 5 Feb 2023 23:51:29 +0100 Subject: [PATCH] Don't enable all flash chips by default on EXST targets. (#12300) --- src/main/target/common_pre.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/target/common_pre.h b/src/main/target/common_pre.h index 16fff68104..2feb06dc75 100644 --- a/src/main/target/common_pre.h +++ b/src/main/target/common_pre.h @@ -166,6 +166,7 @@ #if defined(USE_FLASH) +#if !defined(USE_EXST) #define USE_FLASHFS #define USE_FLASH_TOOLS #define USE_FLASH_M25P16 @@ -174,9 +175,10 @@ #define USE_FLASH_W25M512 // 512Kb (256Kb x 2 stacked) NOR flash support #define USE_FLASH_W25M02G // 2Gb (1Gb x 2 stacked) NAND flash support #define USE_FLASH_W25Q128FV // 16MB Winbond 25Q128 +#endif // USE_EXST -#endif -#endif +#endif // USE_FLASH +#endif // USE_FLASH_CHIP #ifndef USE_MAX7456 #define USE_MAX7456