diff options
| author | Reinhard Panhuber <[email protected]> | 2021-03-02 21:52:42 +0100 |
|---|---|---|
| committer | Reinhard Panhuber <[email protected]> | 2021-03-02 21:52:42 +0100 |
| commit | a1b07ae14c7133a012c48346923304e5d4062ecd (patch) | |
| tree | aae8ae3f791e8ed1c1c53c04e311eb2333a4b601 /src/portable/microchip | |
| parent | 3cdb82c21c7425c8fb6ba88b2a85a6238edb777a (diff) | |
Change copy modes for new read/write functions in tusb_fifo.c
Diffstat (limited to 'src/portable/microchip')
| -rw-r--r-- | src/portable/microchip/samg/dcd_samg.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/portable/microchip/samg/dcd_samg.c b/src/portable/microchip/samg/dcd_samg.c index 5866e1ce8..07ab9e83f 100644 --- a/src/portable/microchip/samg/dcd_samg.c +++ b/src/portable/microchip/samg/dcd_samg.c @@ -312,14 +312,11 @@ bool dcd_edpt_xfer_fifo (uint8_t rhport, uint8_t ep_addr, tu_fifo_t * ff, uint16 if (dir == TUSB_DIR_OUT) { - tu_fifo_set_copy_mode_read(ff, TU_FIFO_COPY_CST); - // Enable interrupt when starting OUT transfer if (epnum != 0) UDP->UDP_IER |= (1 << epnum); } else { - tu_fifo_set_copy_mode_write(ff, TU_FIFO_COPY_CST); tu_fifo_read_n(ff, (void *) &UDP->UDP_FDR[epnum], xfer_packet_len(xfer)); // TX ready for transfer @@ -440,7 +437,7 @@ void dcd_int_handler(uint8_t rhport) // write to EP fifo if (xfer->ff) { - tu_fifo_read_n(xfer->ff, (void *) &UDP->UDP_FDR[epnum], xact_len); + tu_fifo_read_n_const_addr(xfer->ff, (void *) &UDP->UDP_FDR[epnum], xact_len); } else { @@ -473,7 +470,7 @@ void dcd_int_handler(uint8_t rhport) // Read from EP fifo if (xfer->ff) { - tu_fifo_write_n(xfer->ff, (const void *) &UDP->UDP_FDR[epnum], xact_len); + tu_fifo_write_n_const_addr(xfer->ff, (const void *) &UDP->UDP_FDR[epnum], xact_len); } else { |
