Skip to content

Commit

Permalink
feat: Remove phy freq trace api and disable freq trace in at project …
Browse files Browse the repository at this point in the history
…by default
  • Loading branch information
xcguang committed Mar 13, 2019
1 parent 22415d1 commit 80ce106
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions examples/at/user/user_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions examples/at_espconn/user/user_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions examples/at_sdio/user/user_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion include/user_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 80ce106

Please sign in to comment.