|
|
@@ -13,7 +13,7 @@ static volatile uint16_t s_phy_modem_flag = 0;
|
|
|
|
|
|
extern void phy_param_track_tot(bool en_wifi, bool en_ble_154);
|
|
|
static esp_timer_handle_t phy_track_pll_timer;
|
|
|
-#if CONFIG_WIFI_ENABLED
|
|
|
+#if CONFIG_ESP_WIFI_ENABLED
|
|
|
static volatile int64_t s_wifi_prev_timestamp;
|
|
|
#endif
|
|
|
#if CONFIG_IEEE802154_ENABLED || CONFIG_BT_ENABLED
|
|
|
@@ -21,7 +21,7 @@ static volatile int64_t s_bt_154_prev_timestamp;
|
|
|
#endif
|
|
|
#define PHY_TRACK_PLL_PERIOD_IN_US 1000000
|
|
|
|
|
|
-#if CONFIG_IEEE802154_ENABLED || CONFIG_BT_ENABLED || CONFIG_WIFI_ENABLED
|
|
|
+#if CONFIG_IEEE802154_ENABLED || CONFIG_BT_ENABLED || CONFIG_ESP_WIFI_ENABLED
|
|
|
bool phy_enabled_modem_contains(esp_phy_modem_t modem)
|
|
|
{
|
|
|
return (s_phy_modem_flag & modem) != 0;
|
|
|
@@ -32,7 +32,7 @@ static void phy_track_pll(void)
|
|
|
{
|
|
|
bool wifi_track_pll = false;
|
|
|
bool ble_154_track_pll = false;
|
|
|
-#if CONFIG_WIFI_ENABLED
|
|
|
+#if CONFIG_ESP_WIFI_ENABLED
|
|
|
if (phy_enabled_modem_contains(PHY_MODEM_WIFI)) {
|
|
|
wifi_track_pll = true;
|
|
|
s_wifi_prev_timestamp = esp_timer_get_time();
|
|
|
@@ -64,7 +64,7 @@ void phy_track_pll_init(void)
|
|
|
// Using a variable to record the previously tracked time when PLL was last called.
|
|
|
// If the duration is larger than PHY_TRACK_PLL_PERIOD_IN_US, then track PLL.
|
|
|
bool need_track_pll = false;
|
|
|
-#if CONFIG_WIFI_ENABLED
|
|
|
+#if CONFIG_ESP_WIFI_ENABLED
|
|
|
need_track_pll = need_track_pll || ((esp_timer_get_time() - s_wifi_prev_timestamp) > PHY_TRACK_PLL_PERIOD_IN_US);
|
|
|
#endif
|
|
|
#if CONFIG_IEEE802154_ENABLED || CONFIG_BT_ENABLED
|