summaryrefslogtreecommitdiff
path: root/com32/include/core/jiffies.h
diff options
context:
space:
mode:
Diffstat (limited to 'com32/include/core/jiffies.h')
-rw-r--r--com32/include/core/jiffies.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/com32/include/core/jiffies.h b/com32/include/core/jiffies.h
index ed843625..a8e18060 100644
--- a/com32/include/core/jiffies.h
+++ b/com32/include/core/jiffies.h
@@ -4,10 +4,14 @@
#ifndef _CORE_JIFFIES_H
#define _CORE_JIFFIES_H
-#define HZ 18
+#define HZ 18
+#define MS_PER_JIFFY 55
-extern const volatile uint32_t __jiffies;
-static inline uint32_t jiffies(void)
+typedef uint32_t jiffies_t;
+typedef int32_t sjiffies_t;
+
+extern const volatile jiffies_t __jiffies;
+static inline jiffies_t jiffies(void)
{
return __jiffies;
}