diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-03-05 10:59:11 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-03-05 10:59:11 +0000 |
commit | 5e64a9fec2e17d008b9488faa027d2beaa130a88 (patch) | |
tree | 3ab9255111b62d78d755bc51d9e650e63b07be25 /src/chmsg.c | |
parent | 0778745ee12a4f14c001bd205e05728cc01e9633 (diff) | |
download | ChibiOS-5e64a9fec2e17d008b9488faa027d2beaa130a88.tar.gz ChibiOS-5e64a9fec2e17d008b9488faa027d2beaa130a88.tar.bz2 ChibiOS-5e64a9fec2e17d008b9488faa027d2beaa130a88.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@215 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chmsg.c')
-rw-r--r-- | src/chmsg.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/chmsg.c b/src/chmsg.c index 91a6cc9fd..ae90c8264 100644 --- a/src/chmsg.c +++ b/src/chmsg.c @@ -32,7 +32,7 @@ * @param msg the message, it can be a pointer to a complex structure
* @return the return message from \p chMsgRelease()
*/
-t_msg chMsgSend(Thread *tp, t_msg msg) {
+msg_t chMsgSend(Thread *tp, msg_t msg) {
chSysLock();
@@ -70,7 +70,7 @@ t_msg chMsgSend(Thread *tp, t_msg msg) { * a \p chMsgWait(). The use case is that the server thread is waiting
* for both messages AND events while waiting into \p chEvtWait().
*/
-t_msg chMsgSendWithEvent(Thread *tp, t_msg msg, EventSource *esp) {
+msg_t chMsgSendWithEvent(Thread *tp, msg_t msg, EventSource *esp) {
chSysLock();
@@ -103,8 +103,8 @@ t_msg chMsgSendWithEvent(Thread *tp, t_msg msg, EventSource *esp) { * you invoke \p chMsgRelease() because the sending thread is
* suspended until then.
*/
-t_msg chMsgWait(void) {
- t_msg msg;
+msg_t chMsgWait(void) {
+ msg_t msg;
chSysLock();
@@ -127,12 +127,12 @@ t_msg chMsgWait(void) { * suspended until then. Always remember that the message data is not
* copied between the sender and the receiver, just a pointer is passed.
*/
-t_msg chMsgGet(void) {
- t_msg msg;
+msg_t chMsgGet(void) {
+ msg_t msg;
chSysLock();
- msg = chMsgIsPendingI(currp) ? chMsgGetI(currp) : NULL;
+ msg = chMsgIsPendingI(currp) ? chMsgGetI(currp) : (msg_t)NULL;
chSysUnlock();
return msg;
@@ -149,7 +149,7 @@ t_msg chMsgGet(void) { * The condition is not checked in order to make this code as fast as
* possible.
*/
-void chMsgRelease(t_msg msg) {
+void chMsgRelease(msg_t msg) {
chSysLock();
|