From 323b1f8be0e49e5aba79b7c608938b4d02a7ae94 Mon Sep 17 00:00:00 2001 From: Xu Chun Guang Date: Tue, 5 Nov 2024 16:05:05 +0800 Subject: [PATCH] Log: Disable SPI FLASH patch log --- components/spi_flash/Kconfig | 7 ++++++- components/spi_flash/src/patch/spi_flash_patch.h | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/components/spi_flash/Kconfig b/components/spi_flash/Kconfig index e67bd5f1..1ab135ce 100644 --- a/components/spi_flash/Kconfig +++ b/components/spi_flash/Kconfig @@ -2,7 +2,7 @@ menu "SPI Flash" menu "Patch" config ENABLE_SPI_FLASH_PATCH - bool "Enable TH25Q16HB Patch 0" + bool "Enable SPI Flash Patch" default n config ENABLE_TH25Q16HB_PATCH_0 @@ -22,5 +22,10 @@ menu "SPI Flash" WARNING: If you don't use FM25Q16A, you must not enable this option. Although you use FM25Q16A, you should ask your flash manufacturer if your flash need use this patch. + + config ENABLE_SPI_FLASH_PATCH_DEBUG + bool "Enable SPI flash patch debug" + depends on ENABLE_SPI_FLASH_PATCH + default n endmenu endmenu diff --git a/components/spi_flash/src/patch/spi_flash_patch.h b/components/spi_flash/src/patch/spi_flash_patch.h index 3052418d..24243184 100644 --- a/components/spi_flash/src/patch/spi_flash_patch.h +++ b/components/spi_flash/src/patch/spi_flash_patch.h @@ -30,7 +30,7 @@ extern "C" { #define FLASH_PATCH_STR(str) (__extension__({static const FLASH_PATCH_RODATA_ATTR char __c[] = (str); (const char *)&__c;})) -#if 1 +#if CONFIG_ENABLE_SPI_FLASH_PATCH_DEBUG typedef int (*__ets_printf_t)(const char *fmt, ...); #define ROM_PRINTF(_fmt, ...) ((__ets_printf_t)(0x400024cc))(_fmt, ##__VA_ARGS__) #else