custom_msg rcv and snd
This commit is contained in:
parent
2018d64eee
commit
34b956ee4c
|
@ -1,9 +1,5 @@
|
|||
#include <custom_msg.h>
|
||||
|
||||
void setMsgqid(int id) {
|
||||
_MSGQID = id;
|
||||
}
|
||||
|
||||
void rcvMsg(msg_t *msg) {
|
||||
if (msgrcv(_MSGQID, msg, sizeof(msg_t) - sizeof(long), 1, 0) == -1) {
|
||||
errExitMsg("msgrcv");
|
||||
|
|
Loading…
Reference in New Issue