From bb2955ea4bb5c0f9431653351a47b373a2391389 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sun, 4 Sep 2011 02:12:45 +0200 Subject: Added systick based sleep(). --- time.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 time.cpp (limited to 'time.cpp') 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() { + Time::systime++; +} -- cgit v1.2.3