Set an alarm with the same time base as returned by esp_timer_get_time()
Posted: Fri Nov 15, 2019 4:19 pm
Hi,
How can I set an alarm to a given timestamp in microseconds with the same base as esp_timer_get_time() ?
It seems that esp_timer_get_time does not use timer group so they do not share the same time base.
Here is a pseudo code of what I need:
How can I set an alarm to a given timestamp in microseconds with the same base as esp_timer_get_time() ?
It seems that esp_timer_get_time does not use timer group so they do not share the same time base.
Here is a pseudo code of what I need:
Code: Select all
void app_main()
{
execAt = postParam(esp_timer_get_time()); //return a timestamp relative to the input at which an event must be triggered
configure_alarm_at(execAt, handler);
}
void IRAM handler()
{
execute();
}