Is safe lpc11u24 WriteEP simultaniously?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Is safe lpc11u24 WriteEP simultaniously?

484 次查看
darius_b
Contributor I

Hi,

I

I read UM10462 but not found answer.

case1

Is safe lpc11u24 WriteEP simultaniously into different endpoint ?

{

uint8_t tmpTxBuf[64];

pUsbApi->hw->WriteEP(pUsbHandle, 84, tmpTxBuf, 64);

pUsbApi->hw->WriteEP(pUsbHandle, 83, tmpTxBuf, 64);

pUsbApi->hw->WriteEP(pUsbHandle, 82, tmpTxBuf, 64);

pUsbApi->hw->WriteEP(pUsbHandle, 81, tmpTxBuf, 64);

pUsbApi->hw->WriteEP(pUsbHandle, 80, tmpTxBuf, 64);

}

case2

Is safe lpc11u24 WriteEP simultaniously?

I think it not safe, because buffer can bee corrupted. Is it true?

Is occur error interrupt?

{

pUsbApi->hw->WriteEP(pUsbHandle, 82, tmpTxBuf, 64);

pUsbApi->hw->WriteEP(pUsbHandle, 82, tmpTxBuf, 64);

pUsbApi->hw->WriteEP(pUsbHandle, 82, tmpTxBuf, 64);

pUsbApi->hw->WriteEP(pUsbHandle, 82, tmpTxBuf, 64);

pUsbApi->hw->WriteEP(pUsbHandle, 82, tmpTxBuf, 64);

}

Maybe exist detailed  information (application notes) about using USB hardware block?

BR.

Darius Babrauskas

标签 (2)
0 项奖励
回复
1 回复

422 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi Darius Babrauskas

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
In my opinion, neither of these two ways are properly. You can learn how to call the USB ROM API appropriately by referring to USB ROM demo.
Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复