aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-09-08 21:05:53 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-09-08 21:11:47 -0700
commit408e9890f28abc5f204e7cd3643e6417890e628d (patch)
treeab569b70d58a38e861b338f1f997f62d5ab05b97
parent91179071fb767ce93b4a44c373c749057a7a7afa (diff)
downloadlwip-408e9890f28abc5f204e7cd3643e6417890e628d.tar.gz
lwip-408e9890f28abc5f204e7cd3643e6417890e628d.tar.xz
lwip-408e9890f28abc5f204e7cd3643e6417890e628d.zip
core: declare jiffies_t, MS_PER_JIFFY
Create a specific type for jiffies, and an MS_PER_JIFFY macro. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-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;
}