summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2023-08-04 21:59:19 +0700
committerGitHub <[email protected]>2023-08-04 21:59:19 +0700
commit3db945283a694acd9df05df8fbcd13cdd3c819ca (patch)
treee1a5907d3710352adfe722731babf478cac7640c /src
parentc43e7b198d40a41a1c20e38a5b9b8127e2437036 (diff)
parent56e52037a8c2fe383a61587baece0ce1add33afb (diff)
Merge pull request #2185 from abakosh/clean_RA_HCD
Fix typos in HCD rusb file
Diffstat (limited to 'src')
-rw-r--r--src/portable/renesas/rusb2/hcd_rusb2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/portable/renesas/rusb2/hcd_rusb2.c b/src/portable/renesas/rusb2/hcd_rusb2.c
index 55bf6de4d..790cd6b32 100644
--- a/src/portable/renesas/rusb2/hcd_rusb2.c
+++ b/src/portable/renesas/rusb2/hcd_rusb2.c
@@ -265,7 +265,7 @@ static bool pipe_xfer_in(rusb2_reg_t* rusb, unsigned num)
pipe->buf = (uint8_t*)buf + len;
}
if (len < mps) {
- rusb->D0FIFOCTR = RUSB2_CFIFOCTR_BCLR_Msk;
+ rusb->D0FIFOCTR = RUSB2_D0FIFOCTR_BCLR_Msk;
}
rusb->D0FIFOSEL = 0;
while (rusb->D0FIFOSEL_b.CURPIPE) ; /* if CURPIPE bits changes, check written value */
@@ -297,7 +297,7 @@ static bool pipe_xfer_out(rusb2_reg_t* rusb, unsigned num)
pipe->buf = (uint8_t*)buf + len;
}
if (len < mps) {
- rusb->D0FIFOCTR = RUSB2_CFIFOCTR_BVAL_Msk;
+ rusb->D0FIFOCTR = RUSB2_D0FIFOCTR_BVAL_Msk;
}
rusb->D0FIFOSEL = 0;
while (rusb->D0FIFOSEL_b.CURPIPE) ; /* if CURPIPE bits changes, check written value */
@@ -367,7 +367,7 @@ static bool process_pipe_xfer(uint8_t rhport, uint8_t dev_addr, uint8_t ep_addr,
} else { /* ZLP */
rusb->D0FIFOSEL = num;
pipe_wait_for_ready(rusb, num);
- rusb->D0FIFOCTR = RUSB2_CFIFOCTR_BVAL_Msk;
+ rusb->D0FIFOCTR = RUSB2_D0FIFOCTR_BVAL_Msk;
rusb->D0FIFOSEL = 0;
while (rusb->D0FIFOSEL_b.CURPIPE) {} /* if CURPIPE bits changes, check written value */
}