mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
LPC17 USB host: Fix some compile errors when bulk endpoints + USB debug enabled. Refresh a configuration
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user