大家好!
我打算用6678的EVM做多核编程,看了TI提供的image processing的例程,但是没有太搞清楚它是怎么运作的。相关文件夹里有好几个.C文件,我主要看了mcip_master_main.C和mcip_slave_main.C文件,因为我觉得这两个main应该是主程序入口。但是二者里面的main函数都很简单,并没有sending or receiving message,也没有调用image processing的函数。mcip_master_main.C中的main函数如下:
/*
*Main Entry Point
*/
int main(void)
{
/*
* Ipc_start() calls Ipc_attach() to synchronize all remote processors
* because 'Ipc.procSync' is set to 'Ipc.ProcSync_ALL' in *.cfg
*/
Ipc_start();
/* Start the BIOS 6 Scheduler */
BIOS_start ();
return 1;
}
mcip_slave_main.C中的main函数如下:
/*
*Main Entry Point
*/
int main()
{
UInt16 core_id = (UInt16) DNUM;
MultiProc_setLocalId(core_id);
/*
* Ipc_start() calls Ipc_attach() to synchronize all remote processors
* because 'Ipc.procSync' is set to 'Ipc.ProcSync_ALL' in *.cfg
*/
Ipc_start();
/* Start the BIOS 6 Scheduler */
BIOS_start ();
}
两个main函数里都只有ipc_start()函数和BIOS_start()函数。我想知道master core控制slave core,它们之间的通讯是在程序的哪部分体现的,还有是如何调用image processing函数的。
在下编程方面比较弱,恳请大牛们指点,不胜感谢!