projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add rotating hash init function.
[bertos.git]
/
drv
/
timer_posix.h
diff --git
a/drv/timer_posix.h
b/drv/timer_posix.h
index fbaf9e4fa967750956fd2824abc33a958423ac8a..f6b725a3d79edf0003bb3552224bf62f1eae967d 100755
(executable)
--- a/
drv/timer_posix.h
+++ b/
drv/timer_posix.h
@@
-1,4
+1,4
@@
-/*
!
+/*
*
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* \file
* <!--
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
@@
-14,6
+14,12
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.4 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
+ *#* Revision 1.3 2006/02/23 11:03:33 bernie
+ *#* Documentation fix.
+ *#*
*#* Revision 1.2 2006/02/21 21:28:02 bernie
*#* New time handling based on TIMER_TICKS_PER_SEC to support slow timers with ticks longer than 1ms.
*#*
*#* Revision 1.2 2006/02/21 21:28:02 bernie
*#* New time handling based on TIMER_TICKS_PER_SEC to support slow timers with ticks longer than 1ms.
*#*
@@
-30,7
+36,10
@@
// HW dependent timer initialization
#define DEFINE_TIMER_ISR void timer_isr(UNUSED_ARG(int, arg))
// HW dependent timer initialization
#define DEFINE_TIMER_ISR void timer_isr(UNUSED_ARG(int, arg))
+
+/** Most Linux kernels can't do better than this (CONFIG_HZ=250). */
#define TIMER_TICKS_PER_SEC 250
#define TIMER_TICKS_PER_SEC 250
+
#define TIMER_HW_CNT (1<<31) /* We assume 32bit integers here */
#include <os/hptime.h>
#define TIMER_HW_CNT (1<<31) /* We assume 32bit integers here */
#include <os/hptime.h>