X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Ftimer_test.c;h=10b76c42f9bf68d1b52c8067f2d5742f9973541e;hb=d14c11ed6f463320866567825c731d89ef2f98c2;hp=4dd7c7d3653f5d58cf4ee4f448600d0cc807642f;hpb=5f3952176a4e9a00ca8dd5ec4a6b994958f89e0a;p=bertos.git diff --git a/drv/timer_test.c b/drv/timer_test.c index 4dd7c7d3..10b76c42 100644 --- a/drv/timer_test.c +++ b/drv/timer_test.c @@ -1,8 +1,33 @@ /** * \file * * * \brief Hardware independent timer driver (implementation) @@ -27,9 +52,10 @@ *#* *#*/ -#include "timer.c" -#include "mware/event.c" -#include "os/hptime.c" +#include +#include "timer.h" +#include +//#include "os/hptime.c" static void timer_test_constants(void) { @@ -109,14 +135,18 @@ static void timer_test_poll(void) start_time += 1000; kprintf("seconds = %d, ticks=%ld\n", secs, now); } - wdt_reset(); +// wdt_reset(); } } int main(void) { - wdt_init(7); +// wdt_init(7); + kdbg_init(); + sysirq_init(); timer_init(); + IRQ_ENABLE; + timer_test_constants(); timer_test_delay(); timer_test_async();