* 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)
{