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.

咨询关于SYSLINK中MESSAGEQ的问题



你好,

我使用的OMAPL138

基于mcsdk_1_01_00_02中的linux3.3版本内核

目前使用SYSLINK方式进行ARM-DSP之间通讯,SYSLINK版本为syslink_2_21_03_11

现在想咨询两个问题

1. MessageQ_alloc()函数分配堆空间的时候,所分配空间的大小受哪个参数的限制?

    heapParams.blockSize = 64;

    heapParams.numBlocks = 10;

    跟这两个参数是什么关系?堆块大小和堆块数量又有什么意义?

按照这个大小分配,我调用MessageQ_alloc函数时,size的大小不能超过128,否则就会报错

2. 在ex02_messageq的例程中,所传递的数据结构是App_Msg结构体

typedef struct {
    MessageQ_MsgHeader reserved;
    UInt32 cmd;
    SharedRegion_SRPtr buf;
} App_Msg;

请问这个SharedRegion_SRPtr类型的参数可以怎么使用?从名称上来看,应该是共享内存的指针?但是在API中找到

SharedRegion_SRPtr的类型其实是u32,不知道这个参数如何使用

感谢