aboutsummaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-03-07 10:17:12 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-03-07 10:17:12 +0000
commitb7935679d5a67eb01c5254acc439cc56ce01ca29 (patch)
tree33ae4c2cf81d7cb9193576b94b7e7643fb4cd982 /src/include
parent75813bcef30adf76c54ab1f7f02203896320b8c5 (diff)
downloadChibiOS-b7935679d5a67eb01c5254acc439cc56ce01ca29.tar.gz
ChibiOS-b7935679d5a67eb01c5254acc439cc56ce01ca29.tar.bz2
ChibiOS-b7935679d5a67eb01c5254acc439cc56ce01ca29.zip
Changes to mailboxes, added S-class APIs.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@810 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/include')
-rw-r--r--src/include/mailboxes.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/include/mailboxes.h b/src/include/mailboxes.h
index 68caee8d1..075dd0989 100644
--- a/src/include/mailboxes.h
+++ b/src/include/mailboxes.h
@@ -27,7 +27,7 @@
#ifndef _MAILBOXES_H_
#define _MAILBOXES_H_
-#if CH_USE_MAILBOXES
+#if CH_USE_MAILBOXES && CH_USE_SEMAPHORES_TIMEOUT
typedef struct {
msg_t *mb_buffer; /**< Pointer to the mailbox buffer.*/
@@ -45,8 +45,11 @@ extern "C" {
void chMBInit(Mailbox *mbp, msg_t *buf, cnt_t n);
void chMBReset(Mailbox *mbp);
msg_t chMBPost(Mailbox *mbp, msg_t msg, systime_t timeout);
+ msg_t chMBPostS(Mailbox *mbp, msg_t msg, systime_t timeout);
msg_t chMBPostAhead(Mailbox *mbp, msg_t msg, systime_t timeout);
+ msg_t chMBPostAheadS(Mailbox *mbp, msg_t msg, systime_t timeout);
msg_t chMBFetch(Mailbox *mbp, msg_t *msgp, systime_t timeout);
+ msg_t chMBFetchS(Mailbox *mbp, msg_t *msgp, systime_t timeout);
#ifdef __cplusplus
}
#endif
@@ -88,7 +91,7 @@ extern "C" {
*/
#define chMBPeek(mbp) (*(mbp)->mb_rdptr)
-#endif /* CH_USE_MAILBOXES */
+#endif /* CH_USE_MAILBOXES && CH_USE_SEMAPHORES_TIMEOUT */
#endif /* _MAILBOXES_H_ */