Updates to the PIC32 USB driver (still kind of buggy); Fix for STM32 CAN2 -- Need to enable CAN1 clocking to use CAN2

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4493 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo
2012-03-16 20:59:21 +00:00
parent 1427e50541
commit 2286099a15
8 changed files with 313 additions and 179 deletions
+3 -2
View File
@@ -1683,6 +1683,7 @@ static int usbmsc_cmdparsestate(FAR struct usbmsc_dev_s *priv)
usbtrace(TRACE_CLSERROR(USBMSC_TRACEERR_CMDPARSEWRREQLISTEMPTY), 0);
return -ENOMEM;
}
DEBUGASSERT(privreq->req && privreq->req->buf);
buf = privreq->req->buf;
@@ -2332,9 +2333,9 @@ static int usbmsc_cmdfinishstate(FAR struct usbmsc_dev_s *priv)
usleep (100000);
(void)EP_STALL(priv->epbulkin);
/* now wait for stall to go away .... */
/* now wait for stall to go away .... */
usleep (100000);
usleep (100000);
#else
(void)EP_STALL(priv->epbulkin);
#endif