int main(int argc, char * *argv) { extern void start_load_task(void); UInt16 hostId; /* Set up interprocessor notifications */ System_printf("%s starting..\n", MultiProc_getName(MultiProc_self())); hostId = MultiProc_getId("HOST"); RPMessage_init(hostId); /* Some background ping testing tasks, used by rpmsg samples: */ start_ping_tasks(); /* CPU load reporting in the trace. */ // start_load_task(); /* Dump Tools version */ tools_ShowVersion(); BIOS_start(); return (0); }
Int main(Int argc, char* argv[]) { RcmServer_Params rcmServerParams; System_printf("%s starting..\n", MultiProc_getName(MultiProc_self())); /* * Enable use of runtime Diags_setMask per module: * * Codes: E = ENTRY, X = EXIT, L = LIFECYCLE, F = INFO, S = STATUS */ Diags_setMask("ti.ipc.rpmsg.MessageQCopy=EXLFS"); /* Setup the table of services, so clients can create and connect to * new service instances: */ ServiceMgr_init(); /* initialize RcmServer create params */ RcmServer_Params_init(&rcmServerParams); /* The first function, at index 0, is a special create function, which * gets passed a Service_Handle argument. * We set this at run time as our C compiler is not allowing named union * field initialization: */ OMXServer_fxnTab.elem[0].addr.createFxn = RPC_SKEL_GetHandle; rcmServerParams.priority = Thread_Priority_ABOVE_NORMAL; rcmServerParams.fxns.length = OMXServer_fxnTab.length; rcmServerParams.fxns.elem = OMXServer_fxnTab.elem; int i = 0; for (i = 0; i < 255; i ++) bit_num[i] = ((i&1) != 0) + ((i&2) != 0) + ((i&4) != 0) + ((i&8) != 0) + ((i&16) != 0) + ((i&32) != 0) + ((i&64) != 0) + ((i&128) != 0); /* Register an OMX service to create and call new OMX components: */ ServiceMgr_register("OMX", &rcmServerParams); #if 0 /* Some background ping testing tasks, used by rpmsg samples: */ start_ping_tasks(); #endif #if 0 /* DSP or CORE0 or IPU */ /* Run a background task to test rpmsg_resmgr service */ start_resmgr_task(); #endif #if 0 /* DSP or CORE0 or IPU */ /* Run a background task to test hwspinlock */ start_hwSpinlock_task(); #endif /* Start the ServiceMgr services */ ServiceMgr_start(0); BIOS_start(); return (0); }