Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: HelloWorld ServoInterfaceBoardExample1 4180_Lab4
Diff: drv/usb/UsbEndpoint.cpp
- Revision:
- 5:dd63a1e02b1b
- Parent:
- 4:fd826cad83c0
--- a/drv/usb/UsbEndpoint.cpp Fri Jul 09 14:46:47 2010 +0000
+++ b/drv/usb/UsbEndpoint.cpp Tue Jul 27 15:59:42 2010 +0000
@@ -55,6 +55,9 @@
m_pTdTail = (volatile HCTD*)usb_get_td();
//printf("\r\n--m_pEd = %p--\r\n", m_pEd);
+ DBG("m_pEd = %p\n", m_pEd);
+ DBG("m_pTdHead = %p\n", m_pTdHead);
+ DBG("m_pTdTail = %p\n", m_pTdTail);
//Init Ed & Td
//printf("\r\n--Ep Init--\r\n");
@@ -330,10 +333,10 @@
void UsbEndpoint::onCompletion()
{
- DBG("Transfer completed\n");
+ //DBG("Transfer completed\n");
if( m_pTdHead->Control >> 28 )
{
- DBG("\r\nTD Failed with condition code %01x\r\n", m_pTdHead->Control >> 28 );
+ DBG("TD Failed with condition code %01x\n", m_pTdHead->Control >> 28 );
m_status = (int)USBERR_TDFAIL;
}
else if( m_pEd->HeadTd & 0x1 )
@@ -346,7 +349,7 @@
{
//Done
int len;
- DBG("m_pTdHead->CurrBufPtr = %08x, m_pBufStartPtr=%08x\n", m_pTdHead->CurrBufPtr, (uint32_t) m_pBufStartPtr);
+ //DBG("m_pTdHead->CurrBufPtr = %08x, m_pBufStartPtr=%08x\n", m_pTdHead->CurrBufPtr, (uint32_t) m_pBufStartPtr);
if(m_pTdHead->CurrBufPtr)
len = m_pTdHead->CurrBufPtr - (uint32_t) m_pBufStartPtr;
else
@@ -359,7 +362,7 @@
}
else
{
- DBG("\r\nUnknown error...\r\n");
+ DBG("Unknown error...\n");
m_status = (int)USBERR_ERROR;
}
m_result = true;
@@ -373,7 +376,7 @@
return;
do
{
- DBG("sOnCompletion (pTd = %08x)\n", pTd);
+ //DBG("sOnCompletion (pTd = %08x)\n", pTd);
UsbEndpoint* pEp = m_pHeadEp;
do
{