diff options
-rw-r--r-- | nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c | 4 | ||||
-rw-r--r-- | nuttx/drivers/usbdev/usbdev_scsi.c | 6 | ||||
-rw-r--r-- | nuttx/drivers/usbdev/usbdev_storage.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c b/nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c index f4bd1bd13..a7d1f4266 100644 --- a/nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c +++ b/nuttx/arch/arm/src/lpc214x/lpc214x_usbdev.c @@ -1078,7 +1078,7 @@ static int lpc214x_wrrequest(struct lpc214x_ep_s *privep) /* Send the largest number of bytes that we can in this packet */ - buf = privreq->req.buf + privreq->req.xfrd; + buf = (ubyte*)privreq->req.buf + privreq->req.xfrd; lpc214x_epwrite(privep->epphy, buf, nbytes); /* Update for the next time through the loop */ @@ -1139,7 +1139,7 @@ static int lpc214x_rdrequest(struct lpc214x_ep_s *privep) /* Receive the next packet */ - buf = privreq->req.buf + privreq->req.xfrd; + buf = (ubyte*)privreq->req.buf + privreq->req.xfrd; nbytesread = lpc214x_epread(privep->epphy, buf, privep->ep.maxpacket); if (nbytesread < 0) { diff --git a/nuttx/drivers/usbdev/usbdev_scsi.c b/nuttx/drivers/usbdev/usbdev_scsi.c index d04b6a554..89fe7c11e 100644 --- a/nuttx/drivers/usbdev/usbdev_scsi.c +++ b/nuttx/drivers/usbdev/usbdev_scsi.c @@ -1665,7 +1665,7 @@ static int usbstrg_cmdparsestate(FAR struct usbstrg_dev_s *priv) return -ENOMEM; } DEBUGASSERT(privreq->req && privreq->req->buf); - buf = privreq->req->buf; + buf = (ubyte*)privreq->req->buf; /* Assume that no errors will be encountered */ @@ -2018,7 +2018,7 @@ static int usbstrg_cmdreadstate(FAR struct usbstrg_dev_s *priv) */ src = &priv->iobuffer[lun->sectorsize - priv->nsectbytes]; - dest = &req->buf[priv->nreqbytes]; + dest = (ubyte*)&req->buf[priv->nreqbytes]; nbytes = min(CONFIG_USBSTRG_BULKINREQLEN - priv->nreqbytes, priv->nsectbytes); @@ -2150,7 +2150,7 @@ static int usbstrg_cmdwritestate(FAR struct usbstrg_dev_s *priv) { /* Copy the data received in the read request into the sector I/O buffer */ - src = &req->buf[xfrd - priv->nreqbytes]; + src = (ubyte*)&req->buf[xfrd - priv->nreqbytes]; dest = &priv->iobuffer[priv->nsectbytes]; nbytes = min(lun->sectorsize - priv->nsectbytes, priv->nreqbytes); diff --git a/nuttx/drivers/usbdev/usbdev_storage.c b/nuttx/drivers/usbdev/usbdev_storage.c index 99651c15b..7dcd911af 100644 --- a/nuttx/drivers/usbdev/usbdev_storage.c +++ b/nuttx/drivers/usbdev/usbdev_storage.c @@ -800,9 +800,9 @@ static int usbstrg_setup(FAR struct usbdev_s *dev, const struct usb_ctrlreq_s *c case USB_DESC_TYPE_CONFIG: { #ifdef CONFIG_USBDEV_DUALSPEED - ret = usbstrg_mkcfgdesc(ctrlreq->buf, dev->speed, len); + ret = usbstrg_mkcfgdesc((ubyte*)ctrlreq->buf, dev->speed, len); #else - ret = usbstrg_mkcfgdesc(ctrlreq->buf); + ret = usbstrg_mkcfgdesc((ubyte*)ctrlreq->buf); #endif } break; |