This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

IPC 6678



        HeapBufMP_Params_init(&heapBufParams);
        heapBufParams.regionId       = 0;
        heapBufParams.name           = HEAP_NAME;
        heapBufParams.numBlocks      = 1;
        heapBufParams.blockSize      = sizeof(MessageQ_MsgHeader);
        heapHandle = HeapBufMP_create(&heapBufParams);
        if (heapHandle == NULL) {
            System_abort("HeapBufMP_create failed\n" );
        }

您好,在IPC例程里看到这段代码,想知道创建的heap有啥作用?

  • 在IPC底层代码运行时,需要为其分配堆信息,这些堆信息就是供这些中间工程使用的,应用代码不可占用。

    可以参考如下链接:

    http://processors.wiki.ti.com/index.php/IPC_Users_Guide/Examples?keyMatch=IPC HeapBuf&tisearch=Search-EN