From cf204e72ea5fd6e4be8b3295cb148fde5fdd47d2 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 16 Feb 2016 10:07:00 +0000 Subject: Tree reorganization. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8900 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/include/chmsg.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'os/rt/include/chmsg.h') diff --git a/os/rt/include/chmsg.h b/os/rt/include/chmsg.h index cd4f99897..a907eba93 100644 --- a/os/rt/include/chmsg.h +++ b/os/rt/include/chmsg.h @@ -80,7 +80,7 @@ static inline bool chMsgIsPendingI(thread_t *tp) { chDbgCheckClassI(); - return (bool)(tp->p_msgqueue.p_next != (thread_t *)&tp->p_msgqueue); + return (bool)(tp->msgqueue.next != (thread_t *)&tp->msgqueue); } /** @@ -95,9 +95,9 @@ static inline bool chMsgIsPendingI(thread_t *tp) { */ static inline msg_t chMsgGet(thread_t *tp) { - chDbgAssert(tp->p_state == CH_STATE_SNDMSG, "invalid state"); + chDbgAssert(tp->state == CH_STATE_SNDMSG, "invalid state"); - return tp->p_u.sentmsg; + return tp->u.sentmsg; } /** -- cgit v1.2.3