Skip to content

Commit cece59d

Browse files
committed
Generally enable ISO xfer.
1 parent ef2f17a commit cece59d

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -885,11 +885,9 @@ bool dcd_edpt_open (uint8_t rhport, tusb_desc_endpoint_t const * p_endpoint_desc
885885
case TUSB_XFER_CONTROL:
886886
wType = USB_EP_CONTROL;
887887
break;
888-
#if defined(ISOCHRONOUS_DOUBLEBUFFER)
889888
case TUSB_XFER_ISOCHRONOUS:
890889
wType = USB_EP_ISOCHRONOUS;
891890
break;
892-
#endif
893891
case TUSB_XFER_BULK:
894892
wType = USB_EP_CONTROL;
895893
break;
@@ -914,20 +912,13 @@ bool dcd_edpt_open (uint8_t rhport, tusb_desc_endpoint_t const * p_endpoint_desc
914912
* use the same buffer as the double buffer, essentially disabling double buffering */
915913
pma_addr = dcd_pma_alloc(p_endpoint_desc->bEndpointAddress, buffer_size);
916914

917-
#if defined(ISOCHRONOUS_DOUBLEBUFFER)
918915
if( (dir == TUSB_DIR_IN) || (wType == USB_EP_ISOCHRONOUS) )
919-
#else
920-
if(dir == TUSB_DIR_IN)
921-
#endif
922916
{
923917
*pcd_ep_tx_address_ptr(USB, epnum) = pma_addr;
924918
pcd_clear_tx_dtog(USB, epnum);
925919
}
926-
#if defined(ISOCHRONOUS_DOUBLEBUFFER)
920+
927921
if( (dir == TUSB_DIR_OUT) || (wType == USB_EP_ISOCHRONOUS) )
928-
#else
929-
else
930-
#endif
931922
{
932923
*pcd_ep_rx_address_ptr(USB, epnum) = pma_addr;
933924
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
10351026
uint8_t const dir = tu_edpt_dir(ep_addr);
10361027

10371028
xfer->buffer = buffer;
1038-
xfer->ff = NULL; // TODO support dcd_edpt_xfer_fifo API
1029+
xfer->ff = NULL;
10391030
xfer->total_len = total_bytes;
10401031
xfer->queued_len = 0;
10411032

src/portable/st/stm32_fsdev/dcd_stm32_fsdev_pvt_st.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666
defined(STM32F373xC)
6767
#include "stm32f3xx.h"
6868
#define PMA_LENGTH (512u)
69-
#define ISOCHRONOUS_DOUBLEBUFFER
7069
// NO internal Pull-ups
7170
// *B, and *C: 1 x 16 bits/word
7271
// PMA dedicated to USB (no sharing with CAN)
@@ -76,7 +75,6 @@
7675
defined(STM32F303xD) || defined(STM32F303xE)
7776
#include "stm32f3xx.h"
7877
#define PMA_LENGTH (1024u)
79-
#define ISOCHRONOUS_DOUBLEBUFFER
8078
// NO internal Pull-ups
8179
// *6, *8, *D, and *E: 2 x 16 bits/word LPM Support
8280
// When CAN clock is enabled, USB can use first 768 bytes ONLY.

0 commit comments

Comments
 (0)