diff options
| author | liuhy <[email protected]> | 2024-07-09 14:48:58 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2024-07-09 16:10:04 +0800 |
| commit | a4a06573ea6efe3d7a27b5d38cc3b8bff5370a00 (patch) | |
| tree | 58182fa592d4b4e1f767c441777ca5d80cca6104 | |
| parent | 7fab3c29f09b4b7c8f3845023e1a482469ae400a (diff) | |
fix(port/musb/usb_dc_musb.c): usbd_ep_is_stalled api err.
| -rw-r--r-- | port/musb/usb_dc_musb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/port/musb/usb_dc_musb.c b/port/musb/usb_dc_musb.c index ae7b3a5a..28139fa1 100644 --- a/port/musb/usb_dc_musb.c +++ b/port/musb/usb_dc_musb.c @@ -508,13 +508,13 @@ int usbd_ep_is_stalled(uint8_t busid, const uint8_t ep, uint8_t *stalled) musb_set_active_ep(ep_idx); if (USB_EP_DIR_IS_OUT(ep)) { - if(HWREGB(USB_BASE + MUSB_IND_RXCSRL_OFFSET) & USB_RXCSRL1_STALLED) { + if(HWREGB(USB_BASE + MUSB_IND_RXCSRL_OFFSET) & USB_RXCSRL1_STALL) { *stalled = 1; } else { *stalled = 0; } } else { - if(HWREGB(USB_BASE + MUSB_IND_TXCSRL_OFFSET) & USB_TXCSRL1_STALLED) { + if(HWREGB(USB_BASE + MUSB_IND_TXCSRL_OFFSET) & USB_TXCSRL1_STALL) { *stalled = 1; } else { *stalled = 0; |
