diff options
Diffstat (limited to 'kernel.soso/sleep.c')
-rw-r--r-- | kernel.soso/sleep.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/kernel.soso/sleep.c b/kernel.soso/sleep.c deleted file mode 100644 index bc769698..00000000 --- a/kernel.soso/sleep.c +++ /dev/null @@ -1,16 +0,0 @@ -#include "sleep.h" -#include "timer.h" - -void sleepMilliseconds(Thread* thread, uint32 ms) { - uint32 uptime = getUptimeMilliseconds(); - - //target uptime to wakeup - uint32 target = uptime + ms; - - thread->state = TS_SLEEP; - thread->state_privateData = (void*)target; - - enableInterrupts(); - - halt(); -} |