remove "done" folders, label "bs/droneenter, bs/dronelook, and bs/dronevanish files and functions"
This commit is contained in:
19
src/core1/os/settimer.c
Normal file
19
src/core1/os/settimer.c
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <os_internal.h>
|
||||
#include "osint.h"
|
||||
int osSetTimer(OSTimer *t, OSTime value, OSTime interval, OSMesgQueue *mq, OSMesg msg)
|
||||
{
|
||||
OSTime time;
|
||||
t->next = NULL;
|
||||
t->prev = NULL;
|
||||
t->interval = interval;
|
||||
if(value != 0) t->value = value;
|
||||
else t->value = interval;
|
||||
t->mq = mq;
|
||||
t->msg = msg;
|
||||
time = __osInsertTimer(t);
|
||||
if(__osTimerList->next == t) {
|
||||
__osSetTimerIntr(time);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user