custom_msg rcv and snd

This commit is contained in:
Lorenzo Bianchi 2023-05-18 13:52:10 +02:00
parent 2018d64eee
commit 34b956ee4c
1 changed files with 0 additions and 4 deletions

View File

@ -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");