请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TMS320F28379D 主题中讨论的其他器件:C2000WARE
要报告产品中的可疑错误、我需要做什么?
我在 C2000Ware_4_02_00_00中使用了 USB 库、并在 usbbuffer.c 的 USBBufferInfoGet ()中发现了一个错误
void
USBBufferInfoGet(const tUSBBuffer *psBuffer, tUSBRingBufObject *psRingBuf)
{
//
// Check parameter validity.
//
ASSERT(psBuffer && psRingBuf);
//
// Copy the current ring buffer settings to the clients storage.
//
psRingBuf->pui8Buf = psBuffer->sPrivateData.sRingBuf.pui8Buf;
psRingBuf->ui32ReadIndex = psBuffer->sPrivateData.sRingBuf.ui32ReadIndex;
psRingBuf->ui32Size = psBuffer->sPrivateData.sRingBuf.ui32ReadIndex;
psRingBuf->ui32WriteIndex = psBuffer->sPrivateData.sRingBuf.ui32WriteIndex;
}
它将 psRingBuf->ui32Size 指定 ReadIndex 的值,而不是 Ring 缓冲区的大小。