feat(esp8266): add new power management method

This commit is contained in:
dongheng
2019-08-16 09:57:37 +08:00
parent bb6fc942ee
commit aa965627d1
21 changed files with 339 additions and 26 deletions

View File

@ -200,9 +200,9 @@ esp_err_t esp_timer_delete(esp_timer_handle_t timer)
return os_ret == pdPASS ? ESP_OK : ESP_ERR_INVALID_STATE;
}
int64_t esp_timer_get_time()
int64_t esp_timer_get_time(void)
{
extern uint64_t g_esp_os_us;
return (int64_t)g_esp_os_us;
return (int64_t)(g_esp_os_us + soc_get_ccount() / g_esp_ticks_per_us);
}