diff options
| author | maidnl <[email protected]> | 2023-09-08 15:48:05 +0200 |
|---|---|---|
| committer | maidnl <[email protected]> | 2023-09-08 15:48:05 +0200 |
| commit | 228acbeac2642534753beffd866db2a7eab45e31 (patch) | |
| tree | c6e3335f3a52d533d7ea7d7d03956acfed8ce763 /src/portable | |
| parent | 7ce4cfa638a86bfabd7ce8147ea5468d69c1af21 (diff) | |
wait_pipe_fifo_empty() now returns bool (as expected using TU_ASSERT macro)
Diffstat (limited to 'src/portable')
| -rw-r--r-- | src/portable/renesas/rusb2/dcd_rusb2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/portable/renesas/rusb2/dcd_rusb2.c b/src/portable/renesas/rusb2/dcd_rusb2.c index 68ef5890f..24edc30e7 100644 --- a/src/portable/renesas/rusb2/dcd_rusb2.c +++ b/src/portable/renesas/rusb2/dcd_rusb2.c @@ -267,9 +267,10 @@ static void pipe_read_packet_ff(rusb2_reg_t * rusb, tu_fifo_t *f, volatile void } -static void wait_pipe_fifo_empty(rusb2_reg_t* rusb, uint8_t num) { +static bool wait_pipe_fifo_empty(rusb2_reg_t* rusb, uint8_t num) { TU_ASSERT(num); while( (rusb->PIPE_CTR[num-1] & RUSB2_PIPE_CTR_INBUFM_Msk) > 0 ) {} + return true; } |
