Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Real-Time Software Components (RTSC) » MessageQ types when using syslink
MessageQ types when using syslink [message #713802] Tue, 09 August 2011 05:31 Go to next message
Naoki Kawada is currently offline Naoki Kawada
Messages: 10
Registered: June 2010
Junior Member
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 #714065 is a reply to message #713802] Tue, 09 August 2011 18:11 Go to previous messageGo to next message
Sasha Slijepcevic is currently offline Sasha Slijepcevic
Messages: 89
Registered: July 2009
Member
Kawada,
I talked to someone from the SYSBIOS team and they say that you need to cast obj->msgqHdl as a MessageQ_Handle (defined in the common-header file) since obj->msgqHdl is of type ti_sdo_ipc_MessageQ_Handle (RTSC-spec'ed).

We do have a different message board for SYSBIOS. You can usually get a quicker answer to SYSBIOS and IPC questions if you post them there too.
Re: MessageQ types when using syslink [message #714172 is a reply to message #714065] Wed, 10 August 2011 00:38 Go to previous message
Naoki Kawada is currently offline Naoki Kawada
Messages: 10
Registered: June 2010
Junior Member
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: Wed, 10 August 2011 03:02]

Report message to a moderator

Previous Topic:releases and default label
Next Topic:package path resolution given package name
Goto Forum:
  


Current Time: Sun Sep 21 00:19:30 GMT 2014

Powered by FUDForum. Page generated in 0.01629 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software