Added function to get the timestamp of the next us_ticker event.

pull/931/head
Jeremy Brodt 2015-02-24 14:25:43 -06:00
parent 1b2a62100a
commit 7020c50c56
2 changed files with 5 additions and 0 deletions

View File

@ -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;
}

View File

@ -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
}