diff options
| author | Reinhard Panhuber <[email protected]> | 2021-03-02 21:42:24 +0100 |
|---|---|---|
| committer | Reinhard Panhuber <[email protected]> | 2021-03-02 21:42:24 +0100 |
| commit | 3cdb82c21c7425c8fb6ba88b2a85a6238edb777a (patch) | |
| tree | 240b9821a10e852aa8210aa3be5abdec1ae5da31 /src | |
| parent | bd2bab7aff4f0e1dc34cace24c90a7755c00d369 (diff) | |
Change for copy modes in dcd_synopsis.c
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/st/synopsys/dcd_synopsys.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/portable/st/synopsys/dcd_synopsys.c b/src/portable/st/synopsys/dcd_synopsys.c index 6dad05ba1..e2390fe57 100644 --- a/src/portable/st/synopsys/dcd_synopsys.c +++ b/src/portable/st/synopsys/dcd_synopsys.c @@ -688,16 +688,6 @@ bool dcd_edpt_xfer_fifo (uint8_t rhport, uint8_t ep_addr, tu_fifo_t * ff, uint16 xfer->ff = ff; xfer->total_len = total_bytes; - // Set copy mode to constant address - required since data copied to or from the hardware USB FIFO needs to be written at a constant address - if (dir == TUSB_DIR_IN) - { - tu_fifo_set_copy_mode_write(ff, TU_FIFO_COPY_CST); - } - else - { - tu_fifo_set_copy_mode_read(ff, TU_FIFO_COPY_CST); - } - uint16_t num_packets = (total_bytes / xfer->max_size); uint8_t const short_packet_size = total_bytes % xfer->max_size; @@ -912,7 +902,7 @@ static void handle_rxflvl_ints(uint8_t rhport, USB_OTG_OUTEndpointTypeDef * out_ if (xfer->ff) { // Ring buffer - tu_fifo_write_n(xfer->ff, (const void *) rx_fifo, bcnt); + tu_fifo_write_n_const_addr(xfer->ff, (const void *) rx_fifo, bcnt); } else { @@ -1032,7 +1022,7 @@ static void handle_epin_ints(uint8_t rhport, USB_OTG_DeviceTypeDef * dev, USB_OT if (xfer->ff) { usb_fifo_t tx_fifo = FIFO_BASE(rhport, n); - tu_fifo_read_n(xfer->ff, (void *) tx_fifo, packet_size); + tu_fifo_read_n_const_addr(xfer->ff, (void *) tx_fifo, packet_size); } else { |
