X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Ftimer_test.c;h=0d01307f95284c2bdf166b11cecd7fa2efd49545;hb=766a22ae58928039e82f428d17a8a944ab2fb553;hp=bfc712ad2647766f64e91ccf49923510d3d6d288;hpb=b84e872f616fe496961b7b8a9eeb672cf7fb8025;p=bertos.git diff --git a/drv/timer_test.c b/drv/timer_test.c index bfc712ad..0d01307f 100755 --- a/drv/timer_test.c +++ b/drv/timer_test.c @@ -13,6 +13,9 @@ /*#* *#* $Log$ + *#* 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. *#* @@ -34,7 +37,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)); @@ -115,4 +118,5 @@ int main(void) timer_test_delay(); timer_test_async(); timer_test_poll(); + return 0; }