summaryrefslogtreecommitdiff
path: root/time.cpp
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2011-09-04 02:12:45 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2011-09-04 02:12:45 +0200
commitbb2955ea4bb5c0f9431653351a47b373a2391389 (patch)
tree29e325c8ab76b089cbbd57505f7adc9b3117a440 /time.cpp
parente9f8369ce8b464f178c778ff8bcc3f54fe70b30c (diff)
Added systick based sleep().
Diffstat (limited to 'time.cpp')
-rw-r--r--time.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/time.cpp b/time.cpp
new file mode 100644
index 0000000..a5d1f0b
--- /dev/null
+++ b/time.cpp
@@ -0,0 +1,9 @@
+#include "time.h"
+#include "interrupt.h"
+
+volatile uint32_t Time::systime;
+
+template<>
+void interrupt<Interrupt::SysTick>() {
+ Time::systime++;
+}