MessageQ types when using syslink [message #713802] |
Tue, 09 August 2011 01:31  |
Eclipse User |
|
|
|
Hello,
I have a MyMod having MessageQ_Handle in it.
===== MyMod.xdc =====
import ti.sdo.ipc.MessageQ;
module MyMod {
..
instance:
create();
internal:
struct Instance_State {
MessageQ.Handle msgqHdl;
...
}
}
Now I want to export this MessageQ instance to GPP Linux App(via syslink), so I need to use common MessageQ header file from ti/ipc/MessageQ.h in MyMod.c.
===== MyMod.c ======
#include <ti/ipc/MessageQ> // NOT FROM ti.sdo.ipc.MessageQ
...
MessageQ_get(obj->msgqHdl, &msg, timeout);
// NOT MessageQ_get(obj->msgqHdl, &msg, timeout, &eb);
...
When I built this module, I saw some compile errors, which one of errors was saying the type of MessageQ_Handle was incompatible with ti_sdo_ipc_MessageQ_Handle.
Do you have any idea to build correctly for such scenario ?
Best Regards,
Kawada
|
|
|
|
Re: MessageQ types when using syslink [message #714172 is a reply to message #714065] |
Tue, 09 August 2011 20:38  |
Eclipse User |
|
|
|
Sasha,
Thank you for the reply.
I have built MyMod successfully with your scheme.
I did't know it is allowable to cast from ti_sdo_ipc_MessageQ_Handle to generic common handle.
I'll utilize the message board link too.
Best Regards,
Kawada
[Updated on: Tue, 09 August 2011 23:02] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03755 seconds