diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-09-04 02:12:45 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-09-04 02:12:45 +0200 |
commit | bb2955ea4bb5c0f9431653351a47b373a2391389 (patch) | |
tree | 29e325c8ab76b089cbbd57505f7adc9b3117a440 /time.cpp | |
parent | e9f8369ce8b464f178c778ff8bcc3f54fe70b30c (diff) |
Added systick based sleep().
Diffstat (limited to 'time.cpp')
-rw-r--r-- | time.cpp | 9 |
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++; +} |