git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1718 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
f19cc09417
commit
755c42b99a
|
@ -77,8 +77,11 @@ msg_t chMsgWait(void) {
|
||||||
chSysLock();
|
chSysLock();
|
||||||
if (!chMsgIsPendingI(currp))
|
if (!chMsgIsPendingI(currp))
|
||||||
chSchGoSleepS(THD_STATE_WTMSG);
|
chSchGoSleepS(THD_STATE_WTMSG);
|
||||||
/* msg = chMsgGetI(currp);*/
|
#if defined(CH_ARCHITECTURE_STM8)
|
||||||
msg = chMsgGetI((volatile Thread *)currp); /* Temporary hack.*/
|
msg = chMsgGetI((volatile Thread *)currp); /* Temporary hack.*/
|
||||||
|
#else
|
||||||
|
msg = chMsgGetI(currp);
|
||||||
|
#endif
|
||||||
chSysUnlock();
|
chSysUnlock();
|
||||||
return msg;
|
return msg;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue