X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Ftimer.h;h=0063ff4d606880ed69ccd3f2d124c1a30ba25c43;hb=85760a6e32e79740c1af4ca58710478bebb48cf6;hp=41f43f655d5cc191201fd0c7c8fa1736d334c965;hpb=9d38debd0d2b2eaeeeec7f82d7c39e749ac729e5;p=bertos.git diff --git a/bertos/drv/timer.h b/bertos/drv/timer.h index 41f43f65..0063ff4d 100644 --- a/bertos/drv/timer.h +++ b/bertos/drv/timer.h @@ -30,10 +30,14 @@ * Copyright 2000, 2008 Bernie Innocenti * --> * - * \brief Hardware independent timer driver (interface) + * \brief Hardware independent timer driver. * * \version $Id$ * \author Bernie Innocenti + * + * $WIZ$ module_name = "timer" + * $WIZ$ module_configuration = "bertos/cfg/cfg_timer.h" + * $WIZ$ module_supports = "not atmega103" */ #ifndef DRV_TIMER_H @@ -51,7 +55,8 @@ * Try the CPU specific one for bare-metal environments. */ #if OS_HOSTED - #include OS_HEADER(timer) + //#include OS_HEADER(timer) + #include #else #include CPU_HEADER(timer) #endif @@ -248,12 +253,9 @@ Timer *timer_abort(Timer *timer); /** Set the timer so that it calls an user hook when it expires */ INLINE void timer_setSoftint(Timer *timer, Hook func, iptr_t user_data) { - event_initSoftInt(&timer->expire, func, 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) {