X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Ftimer_test.c;h=c3414d79f697dfca648042873be8e70431e61cc2;hb=a5d199ea6aed560d3b62c41b73d16d500ba51b99;hp=07e75a66bf703b71f4e68ce4cd0d84a1e709257a;hpb=747bcac9a31ecd296ee45ff28090dde5707fc264;p=bertos.git diff --git a/bertos/drv/timer_test.c b/bertos/drv/timer_test.c index 07e75a66..c3414d79 100644 --- a/bertos/drv/timer_test.c +++ b/bertos/drv/timer_test.c @@ -34,6 +34,7 @@ * * \version $Id$ * \author Bernie Innocenti + * */ #include @@ -67,7 +68,9 @@ static void timer_test_constants(void) kprintf("ticks_to_us(10000) = %lu\n", (unsigned long)ticks_to_us(10000)); kprintf("\n"); kprintf("hptime_to_us(100) = %lu\n", (unsigned long)hptime_to_us(100)); - kprintf("hptime_to_us(10000)= %lu\n", (unsigned long)hptime_to_us(10000)); + #if (SIZEOF_HPTIME_T > 1) + kprintf("hptime_to_us(10000)= %lu\n", (unsigned long)hptime_to_us(10000)); + #endif kprintf("us_to_hptime(100) = %lu\n", (unsigned long)us_to_hptime(100)); kprintf("us_to_hptime(10000)= %lu\n", (unsigned long)us_to_hptime(10000)); }