esp32: fix WiFi timer inaccurate bug

Fix the bug that WiFi timer is not accurate when sleep is on
This commit is contained in:
Liu Zhi Fu
2018-10-16 15:47:54 +08:00
parent 6313ea0088
commit be02f6b423
3 changed files with 34 additions and 1 deletions

View File

@@ -35,6 +35,7 @@
#include "esp_err.h"
#include "esp_wifi_types.h"
#include "esp_event.h"
#include "esp_wifi.h"
#ifdef __cplusplus
extern "C" {
@@ -161,6 +162,15 @@ void *wifi_realloc( void *ptr, size_t size );
*/
void *wifi_calloc( size_t n, size_t size );
/**
* @brief Update WiFi MAC time
*
* @param uint32_t time_delta : time duration since the WiFi/BT common clock is disabled
*
* @return Always returns ESP_OK
*/
esp_err_t esp_wifi_internal_update_mac_time( uint32_t time_delta );
#ifdef __cplusplus
}
#endif