Skip to content

Commit 459a83b

Browse files
committed
Small tweaks to keep tools/extract_configs.py happy
1 parent cfb7f7a commit 459a83b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/rp2040/hardware_regs/include/hardware/platform_defs.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@
6969
#define SYS_CLK_HZ ((SYS_CLK_MHZ) * _u(1000000))
7070
#else
7171
// PICO_CONFIG: PICO_USE_FASTEST_SUPPORTED_CLOCK, Use the fastest officially supported clock by default, type=bool, default=0, group=hardware_base
72+
#ifndef PICO_USE_FASTEST_SUPPORTED_CLOCK
73+
#define PICO_USE_FASTEST_SUPPORTED_CLOCK 0
74+
#endif
7275
#if PICO_USE_FASTEST_SUPPORTED_CLOCK
7376
#define SYS_CLK_HZ _u(200000000)
7477
#else

src/rp2_common/hardware_clocks/include/hardware/clocks.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,10 @@ extern "C" {
225225
#ifndef PLL_SYS_POSTDIV2
226226
#define PLL_SYS_POSTDIV2 1
227227
#endif
228+
#else
229+
#ifndef SYS_CLK_VREG_VOLTAGE_AUTO_ADJUST
230+
#define SYS_CLK_VREG_VOLTAGE_AUTO_ADJUST 0
231+
#endif
228232
#endif // PICO_RP2040 && SYS_CLK_KHZ == 200000 && XOSC_KHZ == 12000 && PLL_COMMON_REFDIV == 1
229233

230234
#if !defined(PLL_SYS_VCO_FREQ_HZ) || !defined(PLL_SYS_POSTDIV1) || !defined(PLL_SYS_POSTDIV2)

0 commit comments

Comments
 (0)