aboutsummaryrefslogtreecommitdiffstats
path: root/src/chmsg.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-02-07 12:42:29 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-02-07 12:42:29 +0000
commitb08638d7c8e46b3a207705a2e55fdfe4b78cfb3e (patch)
treef9e60d830d48036b3012822a4eedb909c3c4ce25 /src/chmsg.c
parent37c2720510cf319159d19398533169711d092f6b (diff)
downloadChibiOS-b08638d7c8e46b3a207705a2e55fdfe4b78cfb3e.tar.gz
ChibiOS-b08638d7c8e46b3a207705a2e55fdfe4b78cfb3e.tar.bz2
ChibiOS-b08638d7c8e46b3a207705a2e55fdfe4b78cfb3e.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@735 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chmsg.c')
-rw-r--r--src/chmsg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/chmsg.c b/src/chmsg.c
index 1afe1bc99..c2aee871e 100644
--- a/src/chmsg.c
+++ b/src/chmsg.c
@@ -26,9 +26,9 @@
#include <ch.h>
-#ifdef CH_USE_MESSAGES
+#if CH_USE_MESSAGES
-#ifdef CH_USE_MESSAGES_PRIORITY
+#if CH_USE_MESSAGES_PRIORITY
#define msg_insert(tp, qp) prio_insert(tp, qp)
#else
#define msg_insert(tp, qp) queue_insert(tp, qp)
@@ -59,7 +59,7 @@ msg_t chMsgSend(Thread *tp, msg_t msg) {
return msg;
}
-#if defined(CH_USE_EVENTS) && defined(CH_USE_MESSAGES_EVENT)
+#if CH_USE_EVENTS && CH_USE_MESSAGES_EVENT
/**
* @brief Sends a message to the specified thread and atomically pends an
* events set.
@@ -90,7 +90,7 @@ msg_t chMsgSendWithEvent(Thread *tp, msg_t msg, eventmask_t mask) {
chSysUnlock();
return msg;
}
-#endif /* defined(CH_USE_EVENTS) && defined(CH_USE_MESSAGES_EVENT) */
+#endif /* CH_USE_EVENTS && CH_USE_MESSAGES_EVENT */
/**
* @brief Suspends the thread and waits for an incoming message.