You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/03/20 05:26:33 UTC
[incubator-nuttx] branch master updated:
arch/arm/src/imxrt/imxrt_usbdev.c: Add OUT interrupt endpoint support
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 88d59ba arch/arm/src/imxrt/imxrt_usbdev.c: Add OUT interrupt endpoint support
88d59ba is described below
commit 88d59bac405b4f9f0efe1a91def2909579a46600
Author: Simon Åström <si...@actia.se>
AuthorDate: Tue Mar 3 07:48:00 2020 +0000
arch/arm/src/imxrt/imxrt_usbdev.c: Add OUT interrupt endpoint support
---
arch/arm/src/imxrt/hardware/imxrt_usbotg.h | 1 +
arch/arm/src/imxrt/imxrt_usbdev.c | 2 ++
2 files changed, 3 insertions(+)
diff --git a/arch/arm/src/imxrt/hardware/imxrt_usbotg.h b/arch/arm/src/imxrt/hardware/imxrt_usbotg.h
index ca71784..0cdda98 100644
--- a/arch/arm/src/imxrt/hardware/imxrt_usbotg.h
+++ b/arch/arm/src/imxrt/hardware/imxrt_usbotg.h
@@ -710,6 +710,7 @@
# define USBDEV_ENDPTCTRL_RXT_CTRL (0 << USBDEV_ENDPTCTRL_RXT_SHIFT) /* Control */
# define USBDEV_ENDPTCTRL_RXT_ISOC (1 << USBDEV_ENDPTCTRL_RXT_SHIFT) /* Isochronous */
# define USBDEV_ENDPTCTRL_RXT_BULK (2 << USBDEV_ENDPTCTRL_RXT_SHIFT) /* Bulk */
+# define USBDEV_ENDPTCTRL_RXT_INTR (3 << USBDEV_ENDPTCTRL_RXT_SHIFT) /* Interrupt */
#define USBDEV_ENDPTCTRL_RXS (1 << 0) /* Bit 0: Rx endpoint stall */
/* Device non-core registers */
diff --git a/arch/arm/src/imxrt/imxrt_usbdev.c b/arch/arm/src/imxrt/imxrt_usbdev.c
index b1da71a..9d4903e 100644
--- a/arch/arm/src/imxrt/imxrt_usbdev.c
+++ b/arch/arm/src/imxrt/imxrt_usbdev.c
@@ -2180,6 +2180,8 @@ static int imxrt_epconfigure(FAR struct usbdev_ep_s *ep,
cfg |= USBDEV_ENDPTCTRL_RXT_ISOC; break;
case USB_EP_ATTR_XFER_BULK:
cfg |= USBDEV_ENDPTCTRL_RXT_BULK; break;
+ case USB_EP_ATTR_XFER_INT:
+ cfg |= USBDEV_ENDPTCTRL_RXT_INTR; break;
}
imxrt_chgbits (0x0000ffff, cfg,