Skip to content

Commit a9b3902

Browse files
Fix F_CPU 125MHz setting on RP2350 (#2436)
Fixes #2434
1 parent 8f7ddb6 commit a9b3902

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/rp2040/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ extern void __loop() {
7979
static struct _reent *_impure_ptr1 = nullptr;
8080

8181
extern "C" int main() {
82-
#if F_CPU != 125000000
82+
#if (defined(PICO_RP2040) && (F_CPU != 125000000)) || (defined(PICO_RP2350) && (F_CPU != 150000000))
8383
set_sys_clock_khz(F_CPU / 1000, true);
8484
#endif
8585

0 commit comments

Comments
 (0)