Skip to content

Commit

Permalink
Merge branch 'feature/add_get_rtc_clk' into 'master'
Browse files Browse the repository at this point in the history
feat(esp8266): Add get RTC clock value

See merge request sdk/ESP8266_RTOS_SDK!1507
  • Loading branch information
donghengqaz committed Aug 26, 2020
2 parents 321c160 + 20021fe commit eb6efa8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/esp8266/source/esp_sleep.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,3 +427,8 @@ esp_err_t esp_pm_configure(const void* vconfig)
}
return ESP_OK;
}

uint32_t rtc_time_get(void)
{
return REG_READ(RTC_SLP_CNT_VAL);
}

0 comments on commit eb6efa8

Please sign in to comment.