The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
Diff: drivers/TimerEvent.h
- Revision:
- 145:64910690c574
- Parent:
- 128:9bcdf88f62b0
- Child:
- 146:22da6e220af6
--- a/drivers/TimerEvent.h Thu Jun 08 14:53:05 2017 +0100 +++ b/drivers/TimerEvent.h Wed Jun 21 17:31:38 2017 +0100 @@ -21,11 +21,11 @@ namespace mbed { /** \addtogroup drivers */ -/** @{*/ /** Base abstraction for timer interrupts * - * @Note Synchronization level: Interrupt safe + * @note Synchronization level: Interrupt safe + * @ingroup drivers */ class TimerEvent { public: @@ -33,6 +33,8 @@ TimerEvent(const ticker_data_t *data); /** The handler registered with the underlying timer interrupt + * + * @param id Timer Event ID */ static void irq(uint32_t id); @@ -44,9 +46,12 @@ // The handler called to service the timer event of the derived class virtual void handler() = 0; - // insert in to linked list + // insert relative timestamp in to linked list void insert(timestamp_t timestamp); + // insert absolute timestamp into linked list + void insert_absolute(us_timestamp_t timestamp); + // remove from linked list, if in it void remove(); @@ -58,5 +63,3 @@ } // namespace mbed #endif - -/** @}*/