summaryrefslogtreecommitdiff
path: root/src/portable/microchip/samg
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2025-11-27 11:42:31 +0700
committerGitHub <[email protected]>2025-11-27 11:42:31 +0700
commit5ef55bfa30d6f8cf175b3d327f621c76aae7b138 (patch)
tree26fd4779ccaa8b7b2d6cb5aa3badc02fa1cd6a67 /src/portable/microchip/samg
parent38842491bb55260c0cc7d7709abe5b0e73a0de61 (diff)
parent8cf2c3b00b2f8188571e4bd9f0e66ffc5ae188a3 (diff)
Merge pull request #3359 from hathach/xfer-fifo
remove ep buffer for port with dedicated hw fifo
Diffstat (limited to 'src/portable/microchip/samg')
-rw-r--r--src/portable/microchip/samg/dcd_samg.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/portable/microchip/samg/dcd_samg.c b/src/portable/microchip/samg/dcd_samg.c
index 149eee794..1faac2aa8 100644
--- a/src/portable/microchip/samg/dcd_samg.c
+++ b/src/portable/microchip/samg/dcd_samg.c
@@ -436,9 +436,8 @@ void dcd_int_handler(uint8_t rhport)
{
// write to EP fifo
#if 0 // TODO support dcd_edpt_xfer_fifo
- if (xfer->ff)
- {
- tu_fifo_read_n_const_addr_full_words(xfer->ff, (void *) &UDP->UDP_FDR[epnum], xact_len);
+ if (xfer->ff) {
+ tu_fifo_read_n_access_mode(xfer->ff, (void *) &UDP->UDP_FDR[epnum], xact_len, TU_FIFO_FIXED_ADDR_RW32);
}
else
#endif
@@ -471,9 +470,8 @@ void dcd_int_handler(uint8_t rhport)
// Read from EP fifo
#if 0 // TODO support dcd_edpt_xfer_fifo API
- if (xfer->ff)
- {
- tu_fifo_write_n_const_addr_full_words(xfer->ff, (const void *) &UDP->UDP_FDR[epnum], xact_len);
+ if (xfer->ff) {
+ tu_fifo_write_n_access_mode(xfer->ff, (const void *) &UDP->UDP_FDR[epnum], xact_len, TU_FIFO_FIXED_ADDR_RW32);
}
else
#endif