Low Level Timer¶
Schedule a timer.
If scheduled to the past, the execution will be done immediately.
Previous scheduling for the given channel is replaced.
The callback is called from an interrupt context. The function may only be called from the callback or from an application context.
Use miramesh_timer_get_time_now to get the current time.
|time||When the callback should be called|
|callback||The function being called|
|storage||This argument is passed to the callback function|
Remove a scheduled timer.
The function can be called from any IRQ level. It is still possible the timer will be called after the current IRQ finishes or that the timer callback is called during the call.
Gets the current time.
Add an interval in microseconds to the given time.
|time||The time to be added to.|
|interval||How much (in microseconds) the time should change.|