/* * Post data to a mbox. */ void sys_mbox_post(sys_mbox_t mbox, void *data) { long addr = (long)data; if (!data) data = &dummy_msg; //printf("post mbox:0x%x = 0x%x\r\n",mbox,addr); OS_PutMail(mbox,&addr); }
/*----------------------------------------------------------------------------------- * Posts the "msg" to the mailbox. */ void sys_mbox_post( sys_mbox_t *mbox, void *msg ) { e_mailbox_t* embox = (e_mailbox_t*)(*mbox); OS_PutMail(&embox->mbox, &msg); }
/*------------------------------------------- | Name:OS_PutMail1 | Description: | Parameters: | Return Type: | Comments: | See: ---------------------------------------------*/ void OS_PutMail1 (OS_MAILBOX* pMB, void* pmail){ OS_PutMail (pMB,pmail); }