Merge pull request #931 from jeremybrodt/nexttimestamp

Us ticker - add function to get the timestamp of the next us_ticker event.
pull/938/head
Martin Kojtal 2015-02-26 09:24:26 +00:00
commit 252d06bc83
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(); __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_insert_event(ticker_event_t *obj, timestamp_t timestamp, uint32_t id);
void us_ticker_remove_event(ticker_event_t *obj); void us_ticker_remove_event(ticker_event_t *obj);
timestamp_t us_ticker_get_next_timestamp(void);
#ifdef __cplusplus #ifdef __cplusplus
} }