X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Ftimer_test.c;h=c5be24c7eb0c264f7b1861993685ec097460f1b2;hb=e5523f6098d2f4d51c838459ce83423152cc8692;hp=10b76c42f9bf68d1b52c8067f2d5742f9973541e;hpb=d14c11ed6f463320866567825c731d89ef2f98c2;p=bertos.git diff --git a/drv/timer_test.c b/drv/timer_test.c index 10b76c42..c5be24c7 100644 --- a/drv/timer_test.c +++ b/drv/timer_test.c @@ -52,10 +52,9 @@ *#* *#*/ -#include -#include "timer.h" -#include -//#include "os/hptime.c" +#include "timer.c" +#include "mware/event.c" +#include "os/hptime.c" static void timer_test_constants(void) { @@ -135,18 +134,14 @@ 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); - kdbg_init(); - sysirq_init(); + wdt_init(7); timer_init(); - IRQ_ENABLE; - timer_test_constants(); timer_test_delay(); timer_test_async();