index 2aa801f560c9cb6c391804748a2840c621c24914..4f4026a57acd9017ae621ec1ef9dee49cbe25f54 100644 (file)
Void copyTaskFxn(UArg arg0, UArg arg1)
{
RPMessage_Handle handle;
- Char buffer[128];
- UInt32 myEndpoint = 0;
- UInt32 remoteEndpoint;
- UInt16 dstProc;
- UInt16 len;
- Int i;
+ Char buffer[128];
+ Char desc[32];
+ UInt32 myEndpoint = 0;
+ UInt32 remoteEndpoint;
+ UInt16 dstProc;
+ UInt16 len;
+ Int i;
- System_printf("copyTask %d: Entered...:\n", arg0);
+ System_printf("copyTask sample%d:%d: Entered...:\n", arg1, arg0);
dstProc = MultiProc_getId("HOST");
/* Create the messageQ for receiving (and get our endpoint for sending). */
handle = RPMessage_create(arg0, NULL, NULL, &myEndpoint);
- NameMap_register("rpmsg-client-sample", "sample-desc", arg0);
+ System_sprintf(desc, "sample%d", arg1);
+
+#ifdef RPMSG_NS_2_0
+ NameMap_register("rpmsg-client-sample", desc, arg0);
+#else
+ NameMap_register("rpmsg-client-sample", arg0);
+#endif
for (i = 0; i < APP_NUM_ITERATIONS; i++) {
/* Await a character message: */
params.instance->name = "copy0";
params.priority = 3;
params.arg0 = 50;
+ params.arg1 = 1;
Task_create(copyTaskFxn, ¶ms, NULL);
Task_Params_init(¶ms);
params.instance->name = "copy1";
params.priority = 3;
params.arg0 = 51;
+ params.arg1 = 2;
Task_create(copyTaskFxn, ¶ms, NULL);
}