Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 26, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions libraries/mbed/common/us_ticker_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
1 change: 1 addition & 0 deletions libraries/mbed/hal/us_ticker_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down