mirror of https://github.com/ARMmbed/mbed-os.git
TimerEvent: Use ticker_insert_event_us instead of the old API in
insert_absolute. With this patch, event insertion should be more precise.pull/4094/head
parent
3e24e8fa62
commit
f52da48d95
|
@ -45,7 +45,7 @@ void TimerEvent::insert(timestamp_t timestamp) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void TimerEvent::insert_absolute(us_timestamp_t timestamp) {
|
void TimerEvent::insert_absolute(us_timestamp_t timestamp) {
|
||||||
ticker_insert_event(_ticker_data, &event, timestamp, (uint32_t)this);
|
ticker_insert_event_us(_ticker_data, &event, timestamp, (uint32_t)this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TimerEvent::remove() {
|
void TimerEvent::remove() {
|
||||||
|
|
Loading…
Reference in New Issue