From 80ce106ff529e4fb58fc821d7a293a86f14a0737 Mon Sep 17 00:00:00 2001 From: Xu Chun Guang Date: Wed, 13 Mar 2019 11:14:49 +0800 Subject: [PATCH] feat: Remove phy freq trace api and disable freq trace in at project by default --- examples/at/user/user_main.c | 3 --- examples/at_espconn/user/user_main.c | 3 --- examples/at_sdio/user/user_main.c | 3 --- include/user_interface.h | 1 - 4 files changed, 10 deletions(-) diff --git a/examples/at/user/user_main.c b/examples/at/user/user_main.c index 267fbdfe..668817ba 100755 --- a/examples/at/user/user_main.c +++ b/examples/at/user/user_main.c @@ -164,15 +164,12 @@ static const partition_item_t at_partition_table[] = { #endif }; -uint8 ICACHE_FLASH_ATTR at_get_rf_auto_trace_from_flash(void); -void ICACHE_FLASH_ATTR system_phy_freq_trace_enable(bool); void ICACHE_FLASH_ATTR user_pre_init(void) { if(!system_partition_table_regist(at_partition_table, sizeof(at_partition_table)/sizeof(at_partition_table[0]),SPI_FLASH_SIZE_MAP)) { os_printf("system_partition_table_regist fail\r\n"); while(1); } - system_phy_freq_trace_enable(at_get_rf_auto_trace_from_flash()); } void ICACHE_FLASH_ATTR diff --git a/examples/at_espconn/user/user_main.c b/examples/at_espconn/user/user_main.c index d9a7fd80..00429cad 100755 --- a/examples/at_espconn/user/user_main.c +++ b/examples/at_espconn/user/user_main.c @@ -191,15 +191,12 @@ static const partition_item_t at_partition_table[] = { #endif }; -uint8 ICACHE_FLASH_ATTR at_get_rf_auto_trace_from_flash(void); -void ICACHE_FLASH_ATTR system_phy_freq_trace_enable(bool); void ICACHE_FLASH_ATTR user_pre_init(void) { if(!system_partition_table_regist(at_partition_table, sizeof(at_partition_table)/sizeof(at_partition_table[0]),SPI_FLASH_SIZE_MAP)) { os_printf("system_partition_table_regist fail\r\n"); while(1); } - system_phy_freq_trace_enable(at_get_rf_auto_trace_from_flash()); } #ifdef CONFIG_ENABLE_IRAM_MEMORY diff --git a/examples/at_sdio/user/user_main.c b/examples/at_sdio/user/user_main.c index 77906820..14df3a86 100755 --- a/examples/at_sdio/user/user_main.c +++ b/examples/at_sdio/user/user_main.c @@ -173,15 +173,12 @@ static const partition_item_t at_partition_table[] = { #endif }; -uint8 ICACHE_FLASH_ATTR at_get_rf_auto_trace_from_flash(void); -void ICACHE_FLASH_ATTR system_phy_freq_trace_enable(bool); void ICACHE_FLASH_ATTR user_pre_init(void) { if(!system_partition_table_regist(at_partition_table, sizeof(at_partition_table)/sizeof(at_partition_table[0]),SPI_FLASH_SIZE_MAP)) { os_printf("system_partition_table_regist fail\r\n"); while(1); } - system_phy_freq_trace_enable(at_get_rf_auto_trace_from_flash()); } #ifdef CONFIG_ENABLE_IRAM_MEMORY diff --git a/include/user_interface.h b/include/user_interface.h index e1b255e7..765b2469 100755 --- a/include/user_interface.h +++ b/include/user_interface.h @@ -159,7 +159,6 @@ void system_phy_set_max_tpw(uint8 max_tpw); void system_phy_set_tpw_via_vdd33(uint16 vdd33); void system_phy_set_rfoption(uint8 option); void system_phy_set_powerup_option(uint8 option); -void system_phy_freq_trace_enable(bool enable); bool system_param_save_with_protect(uint16 start_sec, void *param, uint16 len); bool system_param_load(uint16 start_sec, uint16 offset, void *param, uint16 len);