14 lines
164 B
C
14 lines
164 B
C
|
#include <sys/timer.h>
|
||
|
#include <sys/atomic.h>
|
||
|
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
|
||
|
void timer_cancel(SYSTIMER* timer){
|
||
|
ATOMIC
|
||
|
if (timer){
|
||
|
list_remove(&timer->list);
|
||
|
};
|
||
|
};
|
||
|
|