File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,17 @@ namespace rtos {
37
37
*/
38
38
class RtosTimer {
39
39
public:
40
+ /* * Create timer.
41
+ @param func function to be executed by this timer.
42
+ @param type osTimerOnce for one-shot or osTimerPeriodic for periodic behaviour. (default: osTimerPeriodic)
43
+ @param argument argument to the timer call back function. (default: NULL)
44
+ @deprecated Replaced with RtosTimer(Callback<void()>, os_timer_type)
45
+ */
46
+ MBED_DEPRECATED (" Replaced with RtosTimer(Callback<void()>, os_timer_type)" )
47
+ RtosTimer (void (*func)(void const *argument), os_timer_type type=osTimerPeriodic, void *argument=NULL ) {
48
+ constructor (mbed::Callback<void ()>(argument, (void (*)(void *))func), type);
49
+ }
50
+
40
51
/* * Create timer.
41
52
@param func function to be executed by this timer.
42
53
@param type osTimerOnce for one-shot or osTimerPeriodic for periodic behaviour. (default: osTimerPeriodic)
You can’t perform that action at this time.
0 commit comments