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

@ -63,7 +63,7 @@ uint32_t IRAM_ATTR esp_log_early_timestamp()
extern uint64_t g_esp_os_us;
extern uint64_t g_esp_boot_ccount;
const uint32_t ticks_per_ms = _xt_tick_divisor * configTICK_RATE_HZ / 1000;
const uint32_t ticks_per_ms = g_esp_ticks_per_us * 1000;
const uint32_t ms = g_esp_os_us / 1000 + g_esp_boot_ccount / ((CRYSTAL_USED * 2) * 1000);
#else
const uint32_t ticks_per_ms = ((CRYSTAL_USED * 2) * 1000);