keep up with pio usb
This commit is contained in:
		@@ -119,8 +119,8 @@ void dcd_edpt_close_all (uint8_t rhport)
 | 
			
		||||
bool dcd_edpt_xfer (uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t total_bytes)
 | 
			
		||||
{
 | 
			
		||||
  (void) rhport;
 | 
			
		||||
  pio_hw_endpoint_t *ep = pio_usb_device_get_ep(ep_addr);
 | 
			
		||||
  return pio_usb_endpoint_transfer(ep, buffer, total_bytes);
 | 
			
		||||
  endpoint_t *ep = pio_usb_device_get_ep(ep_addr);
 | 
			
		||||
  return pio_usb_ll_endpoint_transfer(ep, buffer, total_bytes);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Submit a transfer where is managed by FIFO, When complete dcd_event_xfer_complete() is invoked to notify the stack - optional, however, must be listed in usbd.c
 | 
			
		||||
@@ -137,7 +137,7 @@ 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;
 | 
			
		||||
  pio_hw_endpoint_t *ep = pio_usb_device_get_ep(ep_addr);
 | 
			
		||||
  endpoint_t *ep = pio_usb_device_get_ep(ep_addr);
 | 
			
		||||
  ep->stalled = true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -145,7 +145,7 @@ void dcd_edpt_stall (uint8_t rhport, uint8_t ep_addr)
 | 
			
		||||
void dcd_edpt_clear_stall (uint8_t rhport, uint8_t ep_addr)
 | 
			
		||||
{
 | 
			
		||||
  (void) rhport;
 | 
			
		||||
  pio_hw_endpoint_t *ep = pio_usb_device_get_ep(ep_addr);
 | 
			
		||||
  endpoint_t *ep = pio_usb_device_get_ep(ep_addr);
 | 
			
		||||
  ep->data_id = 0;
 | 
			
		||||
  ep->stalled = false;
 | 
			
		||||
}
 | 
			
		||||
@@ -188,7 +188,7 @@ static void __no_inline_not_in_flash_func(handle_endpoint_irq)(pio_hw_root_port_
 | 
			
		||||
 | 
			
		||||
    if (ep_all & mask)
 | 
			
		||||
    {
 | 
			
		||||
      pio_hw_endpoint_t* ep = PIO_USB_HW_EP(ep_idx);
 | 
			
		||||
      endpoint_t* ep = PIO_USB_HW_EP(ep_idx);
 | 
			
		||||
      uint8_t const tu_rhport = port - PIO_USB_HW_RPORT(0) + 1;
 | 
			
		||||
      dcd_event_xfer_complete(tu_rhport, ep->ep_num, ep->actual_len, result, true);
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -73,7 +73,7 @@ bool hcd_port_connect_status(uint8_t rhport)
 | 
			
		||||
  rhport = RHPORT_PIO(rhport);
 | 
			
		||||
 | 
			
		||||
  pio_hw_root_port_t *root = PIO_USB_HW_RPORT(rhport);
 | 
			
		||||
  port_pin_status_t line_state = pio_hw_get_line_state(root);
 | 
			
		||||
  port_pin_status_t line_state = pio_usb_ll_get_line_state(root);
 | 
			
		||||
 | 
			
		||||
  return line_state != PORT_PIN_SE0;
 | 
			
		||||
}
 | 
			
		||||
@@ -187,7 +187,7 @@ static void __no_inline_not_in_flash_func(handle_endpoint_irq)(pio_hw_root_port_
 | 
			
		||||
 | 
			
		||||
    if (ep_all & mask)
 | 
			
		||||
    {
 | 
			
		||||
      pio_hw_endpoint_t* ep = PIO_USB_HW_EP(ep_idx);
 | 
			
		||||
      endpoint_t* ep = PIO_USB_HW_EP(ep_idx);
 | 
			
		||||
      hcd_event_xfer_complete(ep->dev_addr, ep->ep_num, ep->actual_len, result, true);
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user