X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Ftimer_test.c;h=905f9c90005b151abdf7bfd28b9a71e576819412;hb=0e9db20f6fb7f4ec21edaae6c9270317ee5dcfd9;hp=5fc4257041924542cada51f8a521a3b07933f264;hpb=60d54449c12ed139911df35a9983c14019262d37;p=bertos.git diff --git a/bertos/drv/timer_test.c b/bertos/drv/timer_test.c index 5fc42570..905f9c90 100644 --- a/bertos/drv/timer_test.c +++ b/bertos/drv/timer_test.c @@ -33,7 +33,7 @@ * \brief Hardware independent timer driver (implementation) * * \version $Id$ - * \author Bernardo Innocenti + * \author Bernie Innocenti */ #include @@ -43,6 +43,9 @@ #include +#warning TODO:Refactor this test to comply whit BeRTOS test policy. + +#ifdef _TEST static void timer_test_constants(void) { @@ -65,7 +68,7 @@ static void timer_test_constants(void) kprintf("ticks_to_us(100)=%lu\n", ticks_to_us(100)); kprintf("ticks_to_us(10000)=%lu\n", ticks_to_us(10000)); kprintf("\n"); - kprintf("hptime_to_us(100)=%lu\n", hptime_to_us(100)); + kprintf("hptime_to_us(100)=%ld\n", hptime_to_us(100)); kprintf("hptime_to_us(10000)=%lu\n", hptime_to_us(10000)); kprintf("us_to_hptime(100)=%lu\n", us_to_hptime(100)); kprintf("us_to_hptime(10000)=%lu\n", us_to_hptime(10000)); @@ -126,7 +129,6 @@ static void timer_test_poll(void) } } -#ifdef _TEST #include "timer.c" #include "mware/event.c"