mbed library sources for GR-PEACH rev.B.

Fork of mbed-src by mbed official

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Thu Feb 26 09:30:08 2015 +0000
Parent:
480:69aad4cbc07a
Child:
482:d9a48e768ce0
Commit message:
Synchronized with git revision 252d06bc83c86a4eef94c39176dfcb7ade72f4b5

Full URL: https://github.com/mbedmicro/mbed/commit/252d06bc83c86a4eef94c39176dfcb7ade72f4b5/

Us ticker - add function to get the timestamp of the next us_ticker event.

Changed in this revision

common/us_ticker_api.c Show annotated file Show diff for this revision Revisions of this file
hal/us_ticker_api.h Show annotated file Show diff for this revision Revisions of this file
--- a/common/us_ticker_api.c	Tue Feb 24 13:45:08 2015 +0000
+++ b/common/us_ticker_api.c	Thu Feb 26 09:30:08 2015 +0000
@@ -116,3 +116,7 @@
 
     __enable_irq();
 }
+
+timestamp_t us_ticker_get_next_timestamp(void) {
+    return head->timestamp;
+}
--- a/hal/us_ticker_api.h	Tue Feb 24 13:45:08 2015 +0000
+++ b/hal/us_ticker_api.h	Thu Feb 26 09:30:08 2015 +0000
@@ -43,6 +43,7 @@
 
 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
 }