forked from haraldwolff/avr-fw-modules
12 lines
250 B
C
12 lines
250 B
C
|
#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;
|
||
|
};
|
||
|
|