@@ -885,11 +885,9 @@ bool dcd_edpt_open (uint8_t rhport, tusb_desc_endpoint_t const * p_endpoint_desc
885
885
case TUSB_XFER_CONTROL :
886
886
wType = USB_EP_CONTROL ;
887
887
break ;
888
- #if defined(ISOCHRONOUS_DOUBLEBUFFER )
889
888
case TUSB_XFER_ISOCHRONOUS :
890
889
wType = USB_EP_ISOCHRONOUS ;
891
890
break ;
892
- #endif
893
891
case TUSB_XFER_BULK :
894
892
wType = USB_EP_CONTROL ;
895
893
break ;
@@ -914,20 +912,13 @@ bool dcd_edpt_open (uint8_t rhport, tusb_desc_endpoint_t const * p_endpoint_desc
914
912
* use the same buffer as the double buffer, essentially disabling double buffering */
915
913
pma_addr = dcd_pma_alloc (p_endpoint_desc -> bEndpointAddress , buffer_size );
916
914
917
- #if defined(ISOCHRONOUS_DOUBLEBUFFER )
918
915
if ( (dir == TUSB_DIR_IN ) || (wType == USB_EP_ISOCHRONOUS ) )
919
- #else
920
- if (dir == TUSB_DIR_IN )
921
- #endif
922
916
{
923
917
* pcd_ep_tx_address_ptr (USB , epnum ) = pma_addr ;
924
918
pcd_clear_tx_dtog (USB , epnum );
925
919
}
926
- #if defined( ISOCHRONOUS_DOUBLEBUFFER )
920
+
927
921
if ( (dir == TUSB_DIR_OUT ) || (wType == USB_EP_ISOCHRONOUS ) )
928
- #else
929
- else
930
- #endif
931
922
{
932
923
* pcd_ep_rx_address_ptr (USB , epnum ) = pma_addr ;
933
924
pcd_set_ep_rx_bufsize (USB , epnum , buffer_size );
@@ -1035,7 +1026,7 @@ bool dcd_edpt_xfer (uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t
1035
1026
uint8_t const dir = tu_edpt_dir (ep_addr );
1036
1027
1037
1028
xfer -> buffer = buffer ;
1038
- xfer -> ff = NULL ; // TODO support dcd_edpt_xfer_fifo API
1029
+ xfer -> ff = NULL ;
1039
1030
xfer -> total_len = total_bytes ;
1040
1031
xfer -> queued_len = 0 ;
1041
1032
0 commit comments