Skip to content

Commit 56e5203

Browse files
author
Aladdin Bakosh
committed
clean(ra_hcd): fix typos in the hcd library
1 parent 363cea7 commit 56e5203

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/portable/renesas/rusb2/hcd_rusb2.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ static bool pipe_xfer_in(rusb2_reg_t* rusb, unsigned num)
265265
pipe->buf = (uint8_t*)buf + len;
266266
}
267267
if (len < mps) {
268-
rusb->D0FIFOCTR = RUSB2_CFIFOCTR_BCLR_Msk;
268+
rusb->D0FIFOCTR = RUSB2_D0FIFOCTR_BCLR_Msk;
269269
}
270270
rusb->D0FIFOSEL = 0;
271271
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)
297297
pipe->buf = (uint8_t*)buf + len;
298298
}
299299
if (len < mps) {
300-
rusb->D0FIFOCTR = RUSB2_CFIFOCTR_BVAL_Msk;
300+
rusb->D0FIFOCTR = RUSB2_D0FIFOCTR_BVAL_Msk;
301301
}
302302
rusb->D0FIFOSEL = 0;
303303
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,
367367
} else { /* ZLP */
368368
rusb->D0FIFOSEL = num;
369369
pipe_wait_for_ready(rusb, num);
370-
rusb->D0FIFOCTR = RUSB2_CFIFOCTR_BVAL_Msk;
370+
rusb->D0FIFOCTR = RUSB2_D0FIFOCTR_BVAL_Msk;
371371
rusb->D0FIFOSEL = 0;
372372
while (rusb->D0FIFOSEL_b.CURPIPE) {} /* if CURPIPE bits changes, check written value */
373373
}

0 commit comments

Comments
 (0)