support pio dcd endpiont stall
This commit is contained in:
Submodule lib/Pico-PIO-USB updated: ed84b4de88...d6712cad5b
@@ -136,14 +136,17 @@ bool dcd_edpt_xfer (uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t
|
||||
void dcd_edpt_stall (uint8_t rhport, uint8_t ep_addr)
|
||||
{
|
||||
(void) rhport;
|
||||
(void) ep_addr;
|
||||
pio_hw_endpoint_t *ep = pio_usb_device_get_ep(ep_addr);
|
||||
ep->stalled = true;
|
||||
}
|
||||
|
||||
// clear stall, data toggle is also reset to DATA0
|
||||
void dcd_edpt_clear_stall (uint8_t rhport, uint8_t ep_addr)
|
||||
{
|
||||
(void) rhport;
|
||||
(void) ep_addr;
|
||||
pio_hw_endpoint_t *ep = pio_usb_device_get_ep(ep_addr);
|
||||
ep->data_id = 0;
|
||||
ep->stalled = false;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
Reference in New Issue
Block a user