X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=drv%2Ftimer_test.c;h=170105dea8a1ca9ba809e4305faa5bb10eeb01b2;hb=e39b351c443b613123d5e8ab310e2b4b8663e71c;hp=cc15f11c8a88cab5d320fb53f7720fd660f4b924;hpb=fc978885d252a546f65e0e6691b81999dd03ff4f;p=bertos.git diff --git a/drv/timer_test.c b/drv/timer_test.c old mode 100755 new mode 100644 index cc15f11c..170105de --- a/drv/timer_test.c +++ b/drv/timer_test.c @@ -1,8 +1,33 @@ -/*! +/** * \file * * * \brief Hardware independent timer driver (implementation) @@ -11,15 +36,9 @@ * \author Bernardo Innocenti */ -/*#* - *#* $Log$ - *#* Revision 1.1 2005/11/27 03:04:08 bernie - *#* Move test code to timer_test.c; Add OS_HOSTED support. - *#* - *#*/ - #include "timer.c" #include "mware/event.c" +#include "os/hptime.c" static void timer_test_constants(void) { @@ -30,7 +49,7 @@ static void timer_test_constants(void) #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_MSEC); + 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)); @@ -111,4 +130,5 @@ int main(void) timer_test_delay(); timer_test_async(); timer_test_poll(); + return 0; }