Skip to content

Commit

Permalink
Merge pull request #2185 from abakosh/clean_RA_HCD
Browse files Browse the repository at this point in the history
Fix typos in HCD rusb file
  • Loading branch information
hathach authored Aug 4, 2023
2 parents c43e7b1 + 56e5203 commit 3db9452
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/portable/renesas/rusb2/hcd_rusb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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 */
Expand Down Expand Up @@ -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 */
}
Expand Down

0 comments on commit 3db9452

Please sign in to comment.