From 6b6e5b95fb78af5f4c018c74b54b15a82b32d812 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 17 Feb 2009 20:14:16 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@780 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/chmboxes.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/chmboxes.c b/src/chmboxes.c index 63ab01364..59ce0c93a 100644 --- a/src/chmboxes.c +++ b/src/chmboxes.c @@ -60,6 +60,7 @@ void chMBReset(Mailbox *mbp) { chSysUnlock(); } +#if CH_USE_SEMAPHORES_TIMEOUT /** * @brief Posts a message into a mailbox. * @details The invoking thread waits until a empty slot in the mailbox becomes @@ -146,6 +147,7 @@ msg_t chMBFetch(Mailbox *mbp, msg_t *msgp, systime_t timeout) { chSysUnlock(); return rdymsg; } +#endif /* CH_USE_SEMAPHORES_TIMEOUT */ #endif /* CH_USE_MAILBOXES */ -- cgit v1.2.3