mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-07 10:21:30 +00:00
fix typos
This commit is contained in:
parent
6759721e9a
commit
ddb061f639
@ -254,7 +254,7 @@ static void __tusb_irq_path_func(dcd_rp2040_irq)(void)
|
|||||||
handled |= USB_INTF_DEV_SOF_BITS;
|
handled |= USB_INTF_DEV_SOF_BITS;
|
||||||
|
|
||||||
#if TUD_OPT_RP2040_USB_DEVICE_UFRAME_FIX
|
#if TUD_OPT_RP2040_USB_DEVICE_UFRAME_FIX
|
||||||
// Errata 15 Walkaround for Device Bulk-In endpoint
|
// Errata 15 workaround for Device Bulk-In endpoint
|
||||||
e15_last_sof = time_us_32();
|
e15_last_sof = time_us_32();
|
||||||
|
|
||||||
for ( uint8_t i = 0; i < USB_MAX_ENDPOINTS; i++ )
|
for ( uint8_t i = 0; i < USB_MAX_ENDPOINTS; i++ )
|
||||||
@ -340,7 +340,7 @@ static void __tusb_irq_path_func(dcd_rp2040_irq)(void)
|
|||||||
usb_hw_clear->sie_status = USB_SIE_STATUS_BUS_RESET_BITS;
|
usb_hw_clear->sie_status = USB_SIE_STATUS_BUS_RESET_BITS;
|
||||||
|
|
||||||
#if TUD_OPT_RP2040_USB_DEVICE_ENUMERATION_FIX
|
#if TUD_OPT_RP2040_USB_DEVICE_ENUMERATION_FIX
|
||||||
// Only run enumeration walk-around if pull up is enabled
|
// Only run enumeration workaround if pull up is enabled
|
||||||
if ( usb_hw->sie_ctrl & USB_SIE_CTRL_PULLUP_EN_BITS ) rp2040_usb_device_enumeration_fix();
|
if ( usb_hw->sie_ctrl & USB_SIE_CTRL_PULLUP_EN_BITS ) rp2040_usb_device_enumeration_fix();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -401,7 +401,7 @@ static bool __tusb_irq_path_func(e15_is_bulkin_ep) (struct hw_endpoint *ep)
|
|||||||
ep->transfer_type == TUSB_XFER_BULK);
|
ep->transfer_type == TUSB_XFER_BULK);
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if we need to apply Errata 15 walk-around : i.e
|
// check if we need to apply Errata 15 workaround : i.e
|
||||||
// Endpoint is BULK IN and is currently in critical frame period i.e 20% of last usb frame
|
// Endpoint is BULK IN and is currently in critical frame period i.e 20% of last usb frame
|
||||||
static bool __tusb_irq_path_func(e15_is_critical_frame_period) (struct hw_endpoint *ep)
|
static bool __tusb_irq_path_func(e15_is_critical_frame_period) (struct hw_endpoint *ep)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user