esp_phy: phy track pll logic refactor

This commit is contained in:
zhangwenxu
2023-06-07 20:05:29 +08:00
parent b8e71140ad
commit 4d6b13f395
4 changed files with 60 additions and 1 deletions

View File

@@ -53,6 +53,7 @@ void esp_phy_enable(void)
} else {
phy_wakeup_init();
}
phy_track_pll_init();
}
s_phy_access_ref++;
@@ -69,6 +70,7 @@ void esp_phy_disable(void)
}
if (s_phy_access_ref == 0) {
phy_track_pll_deinit();
phy_close_rf();
phy_xpd_tsens();
}