mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 12:35:28 +00:00
Merge branch 'bugfix/light_sleep_fixes' into 'master'
light sleep fixes See merge request idf/esp-idf!2242
This commit is contained in:
@@ -467,6 +467,18 @@ esp_err_t esp_timer_dump(FILE* stream)
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
int64_t IRAM_ATTR esp_timer_get_next_alarm()
|
||||
{
|
||||
int64_t next_alarm = INT64_MAX;
|
||||
timer_list_lock();
|
||||
esp_timer_handle_t it = LIST_FIRST(&s_timers);
|
||||
if (it) {
|
||||
next_alarm = it->alarm;
|
||||
}
|
||||
timer_list_unlock();
|
||||
return next_alarm;
|
||||
}
|
||||
|
||||
int64_t IRAM_ATTR esp_timer_get_time()
|
||||
{
|
||||
return (int64_t) esp_timer_impl_get_time();
|
||||
|
Reference in New Issue
Block a user