Programming the Master Processor
/* include standard header file for MP code*/
/* MVP code for custom function */
void Func(_IM_MSG_BODY_ST *msg)
MP_RESOURCE_ST *resource;
.../*Allocate resource structure */
resource = mp_res_alloc(msg, MP_SYNCHRONOUS,”Func”);
/*Unpack the parameters */
SrcBuf= mp_msg_get_long(msg, 0);
DstBuf = mp_msg_get_long(msg,1);
/*Allocate a device and a thread */
imDevAlloc(0,0,NULL,IM_DEFAULT,&Device);
imThrAlloc(Device, 0, &Thread);