avr-fw-modules/core/src/timer_create_ex.c

12 lines
250 B
C
Executable File

#include <sys/timer.h>
SYSTIMER* timer_create_ex(uint32_t id,uint32_t timeout,void (*handler)(void),uint8_t flags){
SYSTIMER* timer = timer_create(id,timeout);
if (timer){
timer->flags = flags;
timer->handler = handler;
};
return timer;
};