X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Ftimer_test.c;h=c3414d79f697dfca648042873be8e70431e61cc2;hb=ce5ddc07440aeb1357c7133beac6959b90d21885;hp=5599a81bb4067b37c386a782ddb58b012b5a3dfa;hpb=47a0cddb518ca00886e2dfcf54d4c5e43df2be32;p=bertos.git diff --git a/bertos/drv/timer_test.c b/bertos/drv/timer_test.c index 5599a81b..c3414d79 100644 --- a/bertos/drv/timer_test.c +++ b/bertos/drv/timer_test.c @@ -35,17 +35,6 @@ * \version $Id$ * \author Bernie Innocenti * - * $test$: cp bertos/cfg/cfg_kern.h $cfgdir/ - * $test$: echo "#undef CONFIG_KERN" >> $cfgdir/cfg_kern.h - * $test$: echo "#define CONFIG_KERN 0" >> $cfgdir/cfg_kern.h - * $test$: echo "#undef CONFIG_KERN_SCHED" >> $cfgdir/cfg_kern.h - * $test$: echo "#define CONFIG_KERN_SCHED 0" >> $cfgdir/cfg_kern.h - * $test$: echo "#undef CONFIG_KERN_SIGNALS" >> $cfgdir/cfg_kern.h - * $test$: echo "#define CONFIG_KERN_SIGNALS 0" >> $cfgdir/cfg_kern.h - * $test$: echo "#undef CONFIG_KERN_SEMAPHORES" >> $cfgdir/cfg_kern.h - * $test$: echo "#define CONFIG_KERN_SEMAPHORES 0" >> $cfgdir/cfg_kern.h - * $test$: echo "#undef CONFIG_KERN_MONITOR" >> $cfgdir/cfg_kern.h - * $test$: echo "#define CONFIG_KERN_MONITOR 0" >> $cfgdir/cfg_kern.h */ #include @@ -79,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)); }