summaryrefslogtreecommitdiff
path: root/os/time.h
diff options
context:
space:
mode:
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