LPC17 USB host: Fix some compile errors when bulk endpoints + USB debug enabled. Refresh a configuration

This commit is contained in:
Gregory Nutt
2015-05-06 16:15:12 -06:00
parent 48be132e5d
commit 96698619a0
3 changed files with 232 additions and 147 deletions
+2 -2
View File
@@ -1003,7 +1003,7 @@ static inline int lpc17_rembulked(struct lpc17_usbhost_s *priv,
* with the bulk list while BLE is set.
*/
head = (struct lpc17_ed_s *)lpc17_getreg(LPC17_USBHOST_BULKHEADED)
head = (struct lpc17_ed_s *)lpc17_getreg(LPC17_USBHOST_BULKHEADED);
for (prev = NULL, curr = head;
curr && curr != ed;
prev = curr, curr = (struct lpc17_ed_s *)curr->hw.nexted);
@@ -1570,7 +1570,7 @@ static int lpc17_ctrltd(struct lpc17_usbhost_s *priv, struct lpc17_ed_s *ed,
}
else
{
uvdbg("Bad TD completion status: %d\n", ed->tdstatus);
uvdbg("Bad TD completion status: %d\n", xfrinfo->tdstatus);
ret = xfrinfo->tdstatus == TD_CC_STALL ? -EPERM : -EIO;
}
}
+1 -1
View File
@@ -273,7 +273,7 @@ static int nsh_usbhostinitialize(void)
ret = usbhost_cdcacm_initialize();
if (ret != OK)
{
syslog(LOG_ERR, "ERROR: Failed to register the CDC/ACM serial class: %d\n", eret);
syslog(LOG_ERR, "ERROR: Failed to register the CDC/ACM serial class: %d\n", ret);
}
#endif
File diff suppressed because it is too large Load Diff