Is safe lpc11u24 WriteEP simultaniously?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is safe lpc11u24 WriteEP simultaniously?

414 Views
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

Labels (2)
0 Kudos
1 Reply

352 Views
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 Kudos