X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Ftimer.h;h=3484c5a6386ffcd8148edb28c80dd72c290c33b4;hb=357026e01c5b8305bfca0ab67193f25fbd49e5ee;hp=595ed3869321ae1f7c4195a33600fb4b942d4888;hpb=d42b81186751bc2d7c53e07b9af3f11740064d28;p=bertos.git diff --git a/drv/timer.h b/drv/timer.h index 595ed386..3484c5a6 100755 --- a/drv/timer.h +++ b/drv/timer.h @@ -15,6 +15,9 @@ /* * $Log$ + * Revision 1.4 2004/06/06 18:25:44 bernie + * Rename event macros to look like regular functions. + * * Revision 1.3 2004/06/06 16:57:18 bernie * Mark some functions INLINE instead of 'extern inline'. * @@ -58,14 +61,14 @@ INLINE time_t timer_gettick_irq(void); /*! Set the timer so that it sends a signal when it expires */ INLINE void timer_set_event_signal(Timer* timer, struct Process* proc, sigset_t sigs) { - INITEVENT_SIG(&timer->expire, proc, sigs); + event_initSignal(&timer->expire, proc, sigs); } #endif /*! Set the timer so that it calls an user hook when it expires */ INLINE void timer_set_event_softint(Timer* timer, Hook func, void* user_data) { - INITEVENT_INT(&timer->expire, func, user_data); + event_initSoftInt(&timer->expire, func, user_data); } /*! Set the timer delay (the time before the event will be triggered) */