summaryrefslogtreecommitdiff
path: root/os/time.h
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2021-01-22 13:45:09 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2021-01-22 13:45:09 +0100
commit257c13ef064e20bfbe7330004c76a77f8a73b86b (patch)
tree8610cedea8481d8d6dbbc02edadd61e4983e758d /os/time.h
parent1a38973eb8fd0f889f7c272e9ef183687034d550 (diff)
os: Remove old threading code.
Diffstat (limited to 'os/time.h')
-rw-r--r--os/time.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/os/time.h b/os/time.h
index f4e3ce6..eddba32 100644
--- a/os/time.h
+++ b/os/time.h
@@ -1,7 +1,7 @@
#ifndef TIME_H
#define TIME_H
-#include "thread.h"
+#include <cstdint>
struct STK_t {
volatile uint32_t CTRL;
@@ -28,7 +28,6 @@ class Time {
inline static void sleep(uint32_t ms) {
ms += systime;
while(systime < ms) {
- Thread::yield();
}
}
};