Skip to content

Commit

Permalink
sw: Small comment changes in dma_chan test
Browse files Browse the repository at this point in the history
  • Loading branch information
fischeti committed Jul 15, 2024
1 parent 251361e commit ce17a6e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sw/tests/dma_mchan.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ int main() {
buffer_src_l3[i] = i + 1;
}

// Start slow 2D transfer from L3 to L1 on channel 0.
// Start slow/large 2D transfer from L3 to L1 on channel 0.
snrt_dma_start_2d_channel(buffer_dst_l1_1, buffer_src_l3, TRANSFER_SIZE, 0,
TRANSFER_SIZE, TRANSFER_REP, 0);

// Start fast 2D transfer from L1 to L1 on channel 1.
// Start fast/small 1D transfer from L1 to L1 on channel 1.
snrt_dma_start_1d_channel(buffer_dst_l1_2, buffer_src_l1, TRANSFER_SIZE, 1);

// Check that the fast transfer can finish first.
Expand All @@ -41,8 +41,7 @@ int main() {
asm volatile("dmstati %0, 6" : "=r"(busy_fast));
} while (busy_fast);

// Check that the fast transfer has finished and the slow transfer is still
// busy.
// Check that the fast transfer has finished first.
if (!busy_slow) {
errors++;
}
Expand Down

0 comments on commit ce17a6e

Please sign in to comment.