We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5f5326 commit a63105aCopy full SHA for a63105a
sw/tests/perf_cnt.c
@@ -82,6 +82,12 @@ int main() {
82
snrt_start_perf_counter(0);
83
snrt_start_perf_counter(1);
84
85
+ // Wait for some cycles, since DMA instruction is faster than the
86
+ // register configuration
87
+ for (int i = 0; i < 50; i++) {
88
+ asm volatile("nop");
89
+ }
90
+
91
// Start DMA transfer and wait for completion
92
snrt_dma_txid_t txid_1d = snrt_dma_start_1d(dst, src, WIDE_WORD_SIZE);
93
snrt_dma_wait_all();
0 commit comments