projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for ATMEGA1281.
[bertos.git]
/
drv
/
timer_test.c
diff --git
a/drv/timer_test.c
b/drv/timer_test.c
index bfc712ad2647766f64e91ccf49923510d3d6d288..4dd7c7d3653f5d58cf4ee4f448600d0cc807642f 100755
(executable)
--- a/
drv/timer_test.c
+++ b/
drv/timer_test.c
@@
-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/)
@@
-13,6
+13,12
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.4 2006/07/19 12:56:26 bernie
+ *#* Convert to new Doxygen style.
+ *#*
+ *#* Revision 1.3 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 2005/11/27 03:58:18 bernie
*#* Add POSIX timer emulator.
*#*
*#* Revision 1.2 2005/11/27 03:58:18 bernie
*#* Add POSIX timer emulator.
*#*
@@
-34,7
+40,7
@@
static void timer_test_constants(void)
#ifdef TIMER1_OVF_COUNT
kprintf("TIMER1_OVF_COUNT=%d\n", (int)TIMER1_OVF_COUNT);
#endif
#ifdef TIMER1_OVF_COUNT
kprintf("TIMER1_OVF_COUNT=%d\n", (int)TIMER1_OVF_COUNT);
#endif
- kprintf("TIMER_TICKS_PER_
MSEC=%d\n", (int)TIMER_TICKS_PER_M
SEC);
+ kprintf("TIMER_TICKS_PER_
SEC=%d\n", (int)TIMER_TICKS_PER_
SEC);
kprintf("\n");
kprintf("ms_to_ticks(100)=%lu\n", ms_to_ticks(100));
kprintf("ms_to_ticks(10000)=%lu\n", ms_to_ticks(10000));
kprintf("\n");
kprintf("ms_to_ticks(100)=%lu\n", ms_to_ticks(100));
kprintf("ms_to_ticks(10000)=%lu\n", ms_to_ticks(10000));
@@
-115,4
+121,5
@@
int main(void)
timer_test_delay();
timer_test_async();
timer_test_poll();
timer_test_delay();
timer_test_async();
timer_test_poll();
+ return 0;
}
}