X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Ftimer_test.c;h=5599a81bb4067b37c386a782ddb58b012b5a3dfa;hb=19decd4a0bdfff674f1e4f5caea1e6b6844e5e48;hp=2171db0662960795b58850a38e1ed26d6d5e962b;hpb=e94a42a80537a6a2bd92be602d308eff4bc6d127;p=bertos.git diff --git a/bertos/drv/timer_test.c b/bertos/drv/timer_test.c index 2171db06..5599a81b 100644 --- a/bertos/drv/timer_test.c +++ b/bertos/drv/timer_test.c @@ -34,6 +34,18 @@ * * \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 @@ -131,7 +143,7 @@ static void timer_test_poll(void) int timer_testSetup(void) { IRQ_ENABLE; - wdt_init(7); + wdt_start(7); timer_init(); kdbg_init(); return 0; @@ -154,14 +166,5 @@ int timer_testTearDown(void) return 0; } -#if UNIT_TEST - #include - #include - #include - #include - #include - #include - - TEST_MAIN(timer); -#endif +TEST_MAIN(timer);