From: bernie Date: Thu, 21 Aug 2008 11:18:07 +0000 (+0000) Subject: IRQ_ASSERT_{EN,DIS}ABLE(): Rename for consistency. X-Git-Tag: 2.0.0~268 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=5691738d997fcb88e9ff1cb905c4e180ece79867;p=bertos.git IRQ_ASSERT_{EN,DIS}ABLE(): Rename for consistency. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1666 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/irq.h b/bertos/cpu/irq.h index 5fddfdc9..3a84dcb3 100644 --- a/bertos/cpu/irq.h +++ b/bertos/cpu/irq.h @@ -245,15 +245,19 @@ #ifdef IRQ_ENABLED /// Ensure interrupts are enabled - #define ASSERT_IRQ_ENABLED() ASSERT(IRQ_ENABLED()) + #define IRQ_ASSERT_ENABLED() ASSERT(IRQ_ENABLED()) /// Ensure interrupts are not enabled - #define ASSERT_IRQ_DISABLED() ASSERT(IRQ_ENABLED()) + #define IRQ_ASSERT_DISABLED() ASSERT(!IRQ_ENABLED()) #else - #define ASSERT_IRQ_ENABLED() do {} while(0) - #define ASSERT_IRQ_DISABLED() do {} while(0) + #define IRQ_ASSERT_ENABLED() do {} while(0) + #define IRQ_ASSERT_DISABLED() do {} while(0) #endif +// OBSOLETE names +#define ASSERT_IRQ_ENABLED() IRQ_ASSERT_ENABLED() +#define ASSERT_IRQ_DISABLED() IRQ_ASSERT_DISABLED() + /** * Execute \a CODE atomically with respect to interrupts. *