diff options
| author | HiFiPhile <[email protected]> | 2026-03-06 12:52:27 +0100 |
|---|---|---|
| committer | HiFiPhile <[email protected]> | 2026-03-06 12:52:27 +0100 |
| commit | 4da53e38581e135363f0ab6b65f1f40128061dec (patch) | |
| tree | 24ae7f315defe6ad0eb437a74071bff124eddac5 /src | |
| parent | 3a0227b7718529cf0397d66d2a7a5567e18498c3 (diff) | |
| parent | 6a190546e68c55f81d865dfddee6205ddc6fa941 (diff) | |
Merge branch 'samx7x_update' of https://github.com/hathach/tinyusb into samx7x_update
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/microchip/samx7x/dcd_samx7x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/portable/microchip/samx7x/dcd_samx7x.c b/src/portable/microchip/samx7x/dcd_samx7x.c index 9f62781bb..bd158b47d 100644 --- a/src/portable/microchip/samx7x/dcd_samx7x.c +++ b/src/portable/microchip/samx7x/dcd_samx7x.c @@ -321,7 +321,7 @@ static void dcd_dma_handler(uint8_t ep_ix) { if (USB_REG->DEVEPTCFG[ep_ix] & DEVEPTCFG_EPDIR) { dcd_event_xfer_complete(0, 0x80 + ep_ix, count, XFER_RESULT_SUCCESS, true); } else { - dcd_dcache_invalidate(xfer->buffer, xfer->total_len); + dcd_dcache_invalidate(xfer->buffer, count); dcd_event_xfer_complete(0, ep_ix, count, XFER_RESULT_SUCCESS, true); } } @@ -600,6 +600,6 @@ void dcd_edpt_clear_stall(uint8_t rhport, uint8_t ep_addr) { (void)rhport; const uint8_t epnum = tu_edpt_number(ep_addr); USB_REG->DEVEPTIDR[epnum] = DEVEPTIDR_CTRL_STALLRQC; - USB_REG->DEVEPTIER[epnum] = HSTPIPIER_RSTDTS; + USB_REG->DEVEPTIER[epnum] = DEVEPTIER_RSTDTS; } #endif |
