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.

[参考译文] RTOS/66AK2H12:NIMU_PA_iface.c 中 Pa_getBufferReq ()的正确参数

Guru**** 2618835 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/660524/rtos-66ak2h12-proper-arguments-for-pa_getbufferreq-in-nimu_pa_iface-c

器件型号:66AK2H12

工具/软件:TI-RTOS

XDCtools 3.32、SYS/BIOS 6.46、CCS 7.4、PDK 4.0.7、NDK 2.25

我拥有 PDK NIMU_emacExample_EVMK2H_armBiosExampleProject 项目的纯净创建。 它会生成34个警告。 该项目使用 GNU 编译器。

大量:

忽略#pragma DATA_ALIGN [-未知 pragma ]  

然后是这个:

从不兼容的指针类型 NIMU_PA_iface.c /NIMU_emacExample_EVMK2H_armBiosExampleProject 第262 C/C++行传递'PA_getBufferReq'的参数2

PA_getBufferReq 在 pa.h 中声明为:

paReturn_t Pa_getBufferReq (paSizeInfo_t * sizeCfg、int sizes[]、int aling[]);

然而、在 Nimu_PA_iface.c 中、您将为 arg2和 arg3传递 uint32_t。  

我想清除所有警告。 纠正上述问题的正确方法是什么? INTS 应该传递还是函数声明存在问题?

谢谢、
Mike

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    尊敬的 Mike:

    我已通知 RTOS 团队。 他们将直接在此处发布反馈。

    此致、
    Yordan