From a271c7198a59f307b43c74cc3f2741ece9bafcbc Mon Sep 17 00:00:00 2001 From: bernie Date: Mon, 11 Aug 2008 11:31:10 +0000 Subject: [PATCH] timer_delayTicks(): Re-enable check for interrupts to be enabled wheen sleeping. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1623 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/drv/timer.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bertos/drv/timer.c b/bertos/drv/timer.c index fe5ab89d..f49f6a86 100644 --- a/bertos/drv/timer.c +++ b/bertos/drv/timer.c @@ -184,11 +184,8 @@ Timer *timer_abort(Timer *timer) */ void timer_delayTicks(ticks_t delay) { -#if defined(IRQ_ENABLED) && (!(ARCH & ARCH_EMUL)) /* We shouldn't sleep with interrupts disabled */ - ASSERT(IRQ_ENABLED()); -#endif - + ASSERT_IRQ_ENABLED(); #if defined(CONFIG_KERN_SIGNALS) && CONFIG_KERN_SIGNALS Timer t; -- 2.25.1