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
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -61,16 +61,25 @@
61
61
#endif
62
62
#endif
63
63
64
+
// PICO_CONFIG: PICO_USE_FASTEST_SUPPORTED_CLOCK, Use the fastest officially supported clock by default, type=bool, default=0, group=hardware_base
65
+
#ifndefPICO_USE_FASTEST_SUPPORTED_CLOCK
66
+
#definePICO_USE_FASTEST_SUPPORTED_CLOCK 0
67
+
#endif
68
+
64
69
// PICO_CONFIG: SYS_CLK_HZ, System operating frequency in Hz, type=int, default=125000000, advanced=true, group=hardware_base
65
70
#ifndefSYS_CLK_HZ
66
71
#ifdefSYS_CLK_KHZ
67
72
#defineSYS_CLK_HZ ((SYS_CLK_KHZ) * _u(1000))
68
73
#elif defined(SYS_CLK_MHZ)
69
74
#defineSYS_CLK_HZ ((SYS_CLK_MHZ) * _u(1000000))
70
75
#else
76
+
#ifPICO_USE_FASTEST_SUPPORTED_CLOCK
77
+
#defineSYS_CLK_HZ _u(200000000)
78
+
#else
71
79
#defineSYS_CLK_HZ _u(125000000)
72
80
#endif
73
81
#endif
82
+
#endif
74
83
75
84
// 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
// PICO_CONFIG: SYS_CLK_VREG_VOLTAGE_AUTO_ADJUST_DELAY_US, Number of microseconds to wait after updating regulator voltage due to SYS_CLK_VREG_VOLTAGE_MIN to allow voltage to settle, type=bool, default=1, advanced=true, group=hardware_clocks
0 commit comments