X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Ftimer.h;h=2e1dcdbecd292e28529336988b2977052f0c3c23;hb=46b32fefc02b4b8fc3a9ee1e7225f3053b514a02;hp=380b8c34c1df69df680f516ff223e536af333a8f;hpb=57da5b0bdc06a8a69c740616f145cb9fe28f8c9f;p=bertos.git diff --git a/bertos/drv/timer.h b/bertos/drv/timer.h index 380b8c34..2e1dcdbe 100644 --- a/bertos/drv/timer.h +++ b/bertos/drv/timer.h @@ -228,11 +228,14 @@ void timer_add(Timer *timer); Timer *timer_abort(Timer *timer); /** Set the timer so that it calls an user hook when it expires */ -INLINE void timer_set_event_softint(Timer *timer, Hook func, iptr_t user_data) +INLINE void timer_setSoftInt(Timer *timer, Hook func, iptr_t user_data) { event_initSoftInt(&timer->expire, func, user_data); } +// OBSOLETE +#define timer_set_event_softint timer_setSoftInt + /** Set the timer delay (the time before the event will be triggered) */ INLINE void timer_setDelay(Timer *timer, ticks_t delay) {