mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-12-14 01:08:49 +08:00
Log: Disable SPI FLASH patch log
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user