diff options
| author | hathach <[email protected]> | 2022-04-01 23:31:43 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-04-01 23:31:43 +0700 |
| commit | c25f835aea838f935893fdef6352fab938e11d4b (patch) | |
| tree | ca88a43cdbfd6ede1926abff3932d8069e6b74db | |
| parent | db6cba6a7bdf82f8c131fa2c521b86b10b4d053e (diff) | |
update to use pio hw endpoint
| -rw-r--r-- | hw/bsp/rp2040/family.cmake | 3 | ||||
| m--------- | lib/Pico-PIO-USB | 0 | ||||
| -rw-r--r-- | src/portable/raspberrypi/pio_usb/hcd_pio_usb.c | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/hw/bsp/rp2040/family.cmake b/hw/bsp/rp2040/family.cmake index 4cec645a2..275ec9e6b 100644 --- a/hw/bsp/rp2040/family.cmake +++ b/hw/bsp/rp2040/family.cmake @@ -91,7 +91,8 @@ if (NOT TARGET _rp2040_family_inclusion_marker) ${TOP}/src/portable/raspberrypi/pio_usb/hcd_pio_usb.c ${TOP}/lib/Pico-PIO-USB/pio_usb.c - ${TOP}/lib/Pico-PIO-USB/pio_usb_port.c + ${TOP}/lib/Pico-PIO-USB/pio_usb_host.c + ${TOP}/lib/Pico-PIO-USB/pio_usb_hw.c ${TOP}/lib/Pico-PIO-USB/usb_crc.c ) diff --git a/lib/Pico-PIO-USB b/lib/Pico-PIO-USB -Subproject 650130ab312e0dc9337dc52cccf34d35875abdf +Subproject 72f91ac9cdaf532eacfbe9534420341b1348044 diff --git a/src/portable/raspberrypi/pio_usb/hcd_pio_usb.c b/src/portable/raspberrypi/pio_usb/hcd_pio_usb.c index 037ebc132..09407851d 100644 --- a/src/portable/raspberrypi/pio_usb/hcd_pio_usb.c +++ b/src/portable/raspberrypi/pio_usb/hcd_pio_usb.c @@ -225,7 +225,7 @@ void __no_inline_not_in_flash_func(handle_endpoint_irq)(root_port_t* port, uint3 if (ep_all & mask) { - endpoint_t* ep = PIO_USB_EP(ep_idx); + pio_hw_endpoint_t* ep = PIO_USB_HW_EP(ep_idx); hcd_event_xfer_complete(ep->dev_addr, ep->ep_num, ep->actual_len, result, true); } } |
