summaryrefslogtreecommitdiff
path: root/os/time.h
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2013-07-20 08:41:41 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2013-07-20 08:43:10 +0200
commite14b2f0d2406311a6fcdaea313584995ec8adefd (patch)
treef2cffca4fe334aeb873cce8a77bd5b6f98cc0096 /os/time.h
parent657d427aa41e6e05c8c4d4b1179b42d3363e8018 (diff)
Add support for sleeping threads.scheduler_improvements
Diffstat (limited to 'os/time.h')
-rw-r--r--os/time.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/os/time.h b/os/time.h
index f4e3ce6..6287834 100644
--- a/os/time.h
+++ b/os/time.h
@@ -1,7 +1,7 @@
#ifndef TIME_H
#define TIME_H
-#include "thread.h"
+#include <stdint.h>
struct STK_t {
volatile uint32_t CTRL;
@@ -24,13 +24,6 @@ class Time {
inline static uint32_t time() {
return systime;
}
-
- inline static void sleep(uint32_t ms) {
- ms += systime;
- while(systime < ms) {
- Thread::yield();
- }
- }
};
#endif