Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: target-freescale
Fork of mbed-hal by
Diff: api/Ticker.h
- Revision:
- 16:086d28575041
- Parent:
- 13:d6551a5dcbbf
--- a/api/Ticker.h Fri Apr 01 01:16:52 2016 -0500
+++ b/api/Ticker.h Fri Apr 01 01:22:54 2016 -0500
@@ -68,7 +68,7 @@
* @param fptr pointer to the function to be called
* @param t the time between calls in seconds
*/
- void attach(FunctionPointer fptr, float t) {
+ void attach(FuncPtr<void()> fptr, float t) {
attach_us(fptr, t * 1000000.0f);
}
@@ -88,7 +88,7 @@
* @param fptr pointer to the function to be called
* @param t the time between calls in micro-seconds
*/
- void attach_us(FunctionPointer fptr, timestamp_t t) {
+ void attach_us(FuncPtr<void()> fptr, timestamp_t t) {
_function.attach(fptr);
setup(t);
}
@@ -119,7 +119,7 @@
protected:
timestamp_t _delay; /**< Time delay (in microseconds) for re-setting the multi-shot callback. */
- FunctionPointer _function; /**< Callback. */
+ FuncPtr<void()> _function; /**< Callback. */
};
} // namespace mbed
