esp_wifi: Add esp_wifi_get_tsf_time() API to get the tsf time of

specified interface.

Closes https://github.com/espressif/esp-idf/issues/5533
This commit is contained in:
Hrudaynath Dhabe
2020-07-13 17:04:11 +05:30
parent f29370b02c
commit 7bc2fae323
5 changed files with 28 additions and 2 deletions
+6
View File
@@ -211,6 +211,11 @@ static void IRAM_ATTR wifi_int_restore_wrapper(void *wifi_int_mux, uint32_t tmp)
}
}
static bool IRAM_ATTR is_from_isr_wrapper(void)
{
return xPortInIsrContext();
}
static void IRAM_ATTR task_yield_from_isr_wrapper(void)
{
portYIELD_FROM_ISR();
@@ -636,6 +641,7 @@ wifi_osi_funcs_t g_wifi_osi_funcs = {
._coex_condition_set = coex_condition_set_wrapper,
._coex_wifi_request = coex_wifi_request_wrapper,
._coex_wifi_release = coex_wifi_release_wrapper,
._is_from_isr = is_from_isr_wrapper,
._magic = ESP_WIFI_OS_ADAPTER_MAGIC,
};