feat(phy): relink ets_printf of libphy.a to phy_printf

"phy_printf" has no output.
This commit is contained in:
dongheng
2019-09-16 15:47:50 +08:00
parent 0769fb46dc
commit 6b7c87189d
3 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,2 @@
#!/bin/bash
xtensa-lx106-elf-objcopy --redefine-sym ets_printf=phy_printf libphy.a

Binary file not shown.

View File

@ -361,4 +361,12 @@ void esp_wifi_set_max_tx_power_via_vdd33(uint16_t vdd33)
{ {
extern void phy_vdd33_set_tpw(uint16_t vdd33); extern void phy_vdd33_set_tpw(uint16_t vdd33);
phy_vdd33_set_tpw(vdd33); phy_vdd33_set_tpw(vdd33);
} }
/**
* @brief Just for compiling
*/
int phy_printf(const char *fmt, ...)
{
return 0;
}