|
|
@@ -71,9 +71,11 @@ static bool app_cpu_started = false;
|
|
|
#endif //!CONFIG_FREERTOS_UNICORE
|
|
|
|
|
|
static void do_global_ctors(void);
|
|
|
-static void do_phy_init();
|
|
|
static void main_task(void* args);
|
|
|
extern void app_main(void);
|
|
|
+#if CONFIG_ESP32_PHY_AUTO_INIT
|
|
|
+static void do_phy_init();
|
|
|
+#endif
|
|
|
|
|
|
extern int _bss_start;
|
|
|
extern int _bss_end;
|
|
|
@@ -264,6 +266,7 @@ static void main_task(void* args)
|
|
|
vTaskDelete(NULL);
|
|
|
}
|
|
|
|
|
|
+#if CONFIG_ESP32_PHY_AUTO_INIT
|
|
|
static void do_phy_init()
|
|
|
{
|
|
|
esp_phy_calibration_mode_t calibration_mode = PHY_RF_CAL_PARTIAL;
|
|
|
@@ -297,3 +300,5 @@ static void do_phy_init()
|
|
|
esp_phy_release_init_data(init_data);
|
|
|
free(cal_data); // PHY maintains a copy of calibration data, so we can free this
|
|
|
}
|
|
|
+#endif //CONFIG_ESP32_PHY_AUTO_INIT
|
|
|
+
|