mirror of https://github.com/ARMmbed/mbed-os.git
Added function to get the timestamp of the next us_ticker event.
parent
1b2a62100a
commit
7020c50c56
|
@ -116,3 +116,7 @@ void us_ticker_remove_event(ticker_event_t *obj) {
|
|||
|
||||
__enable_irq();
|
||||
}
|
||||
|
||||
timestamp_t us_ticker_get_next_timestamp(void) {
|
||||
return head->timestamp;
|
||||
}
|
||||
|
|
|
@ -43,6 +43,7 @@ void us_ticker_irq_handler(void);
|
|||
|
||||
void us_ticker_insert_event(ticker_event_t *obj, timestamp_t timestamp, uint32_t id);
|
||||
void us_ticker_remove_event(ticker_event_t *obj);
|
||||
timestamp_t us_ticker_get_next_timestamp(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue