mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

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
 }