一、cfg文件
/* Create the stack Thread Task for our application. */
var tskSlaveThread = Task.create("&slave_main");
tskSlaveThread.stackSize = 0x2000;
tskSlaveThread.priority = 0x5;
tskSlaveThread.instance.name = "slave_main";
创建slave_main进程。
二、main函数
main函数很简单,只是打开IPC以及BIOS
三、slave_main进程
3.1 创建heapBuf
/* Open the heap created by the other processor. Loop until opened. */
do {
status = HeapBufMP_open(IMAGE_PROCESSING_HEAP_NAME, &heapHandle); //"image_processing_heap"
if (status < 0) {
Task_sleep(1);
}
//printf("HeapBufMP_open failed\n" );
} while (status < 0);
3