From 8b2b3759daf3222963cbb3cd4364fef556622e87 Mon Sep 17 00:00:00 2001 From: batt Date: Wed, 25 Mar 2009 15:58:24 +0000 Subject: [PATCH] Update to new kernel config; use cpu_relax(). git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2419 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/drv/timer.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bertos/drv/timer.c b/bertos/drv/timer.c index bd0ff9da..7e99d78e 100644 --- a/bertos/drv/timer.c +++ b/bertos/drv/timer.c @@ -40,7 +40,8 @@ #include "cfg/cfg_timer.h" #include "cfg/cfg_wdt.h" -#include "cfg/cfg_kern.h" +#include "cfg/cfg_proc.h" +#include "cfg/cfg_signal.h" #include #include #include @@ -48,6 +49,7 @@ #include #include #include +#include // cpu_relax() /* * Include platform-specific binding code if we're hosted. @@ -197,11 +199,7 @@ void timer_delayTicks(ticks_t delay) /* Busy wait */ while (timer_clock() - start < delay) - { -#if CONFIG_WATCHDOG - wdt_reset(); -#endif - } + cpu_relax(); #endif /* !CONFIG_KERN_SIGNALS */ } -- 2.25.1