timer_delayTicks(): Re-enable check for interrupts to be enabled wheen sleeping.
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 11 Aug 2008 11:31:10 +0000 (11:31 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 11 Aug 2008 11:31:10 +0000 (11:31 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1623 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/drv/timer.c

index fe5ab89de35a6400ed89946862a9e82dcd30d6e3..f49f6a86ba24799b1c0a252136ea5d8a2d42b46e 100644 (file)
@@ -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;