* Copyright 2000, 2008 Bernie Innocenti <bernie@codewiz.org>
* -->
*
- * \brief Hardware independent timer driver (interface)
+ * \brief Hardware independent timer driver.
*
* \version $Id$
* \author Bernie Innocenti <bernie@codewiz.org>
+ *
+ * $WIZ$ module_name = "timer"
+ * $WIZ$ module_configuration = "bertos/cfg/cfg_timer.h"
+ * $WIZ$ module_depends = "event", "sysirq"
+ * $WIZ$ module_supports = "not atmega103 and not atmega8"
*/
#ifndef DRV_TIMER_H
* Try the CPU specific one for bare-metal environments.
*/
#if OS_HOSTED
- #include OS_HEADER(timer)
+ //#include OS_HEADER(timer)
+ #include <emul/timer_posix.h>
#else
#include CPU_HEADER(timer)
#endif
/** 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)
{