Skip to content

Commit 602bc5f

Browse files
Use PIO for cycle count when -D=__PROFILE
1 parent 5ca8b46 commit 602bc5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cores/rp2040/RP2040Support.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ class RP2040 {
193193
_ccountPgm->prepare(&_pio, &_sm, &off);
194194
ccount_program_init(_pio, _sm, off);
195195
pio_sm_set_enabled(_pio, _sm, true);
196-
#if !defined(__riscv)
196+
#if !defined(__riscv) && !defined(__PROFILE)
197197
}
198198
#endif
199199
}
@@ -229,7 +229,7 @@ class RP2040 {
229229
} else {
230230
#endif
231231
return ccount_read(_pio, _sm);
232-
#if !defined(__riscv)
232+
#if !defined(__riscv) && !defined(__PROFILE)
233233
}
234234
#endif
235235
}
@@ -247,7 +247,7 @@ class RP2040 {
247247
} else {
248248
#endif
249249
return ccount_read(_pio, _sm);
250-
#if !defined(__riscv)
250+
#if !defined(__riscv) && !defined(__PROFILE)
251251
}
252252
#endif
253253
}

0 commit comments

Comments
 (0)