You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/rp2040/hardware_regs/include/hardware/platform_defs.h
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -68,9 +68,14 @@
68
68
#elif defined(SYS_CLK_MHZ)
69
69
#defineSYS_CLK_HZ ((SYS_CLK_MHZ) * _u(1000000))
70
70
#else
71
+
// PICO_CONFIG: PICO_USE_FASTEST_SUPPORTED_CLOCK, Use the fastest officially supported clock by default, type=bool, default=0, group=hardware_base
72
+
#ifPICO_USE_FASTEST_SUPPORTED_CLOCK
73
+
#defineSYS_CLK_HZ _u(200000000)
74
+
#else
71
75
#defineSYS_CLK_HZ _u(125000000)
72
76
#endif
73
77
#endif
78
+
#endif
74
79
75
80
// PICO_CONFIG: USB_CLK_HZ, USB clock frequency. Must be 48MHz for the USB interface to operate correctly, type=int, default=48000000, advanced=true, group=hardware_base
// PICO_CONFIG: SYS_CLK_VREG_VOLTAGE_AUTO_ADJUST, Should the regulator voltage be adjusted above SYS_CLK_VREG_VOLTAGE_MIN when initializing the clocks, type=bool, default=0, advanced=true, group=hardware_clocks
211
+
#ifndefSYS_CLK_VREG_VOLTAGE_AUTO_ADJUST
212
+
#defineSYS_CLK_VREG_VOLTAGE_AUTO_ADJUST 1
213
+
#endif
214
+
// PICO_CONFIG: SYS_CLK_VREG_VOLTAGE_MIN, minimum voltage (see VREG_VOLTAGE_x_xx) for the voltage regulator to be ensured during clock initialization if SYS_CLK_VREG_VOLTAGE_AUTO_ADJUST is 1, type=int, advanced=true, group=hardware_clocks
0 commit comments