*
* \version $Id$
* \author Bernie Innocenti <bernie@codewiz.org>
+ *
*/
#include <cfg/test.h>
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));
}
int timer_testSetup(void)
{
IRQ_ENABLE;
- wdt_init(7);
+ wdt_start(7);
timer_init();
kdbg_init();
return 0;
return 0;
}
-#include TEST_ONLY(drv/timer.c)
-#include TEST_ONLY(drv/kdebug.c)
-#include TEST_ONLY(mware/event.c)
-#include TEST_ONLY(mware/formatwr.c)
-#include TEST_ONLY(mware/hex.c)
-#include TEST_ONLY(os/hptime.c)
-
TEST_MAIN(timer);