From 741df61357482aa361e8d1eb5702e4e7b748206f Mon Sep 17 00:00:00 2001 From: Andrew Burge Date: Tue, 5 Nov 2024 17:15:42 +0000 Subject: [PATCH] Add the required `SYS_CLK_HZ` definition to the suggested cmake output Fixes #2014 --- src/rp2_common/hardware_clocks/scripts/vcocalc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rp2_common/hardware_clocks/scripts/vcocalc.py b/src/rp2_common/hardware_clocks/scripts/vcocalc.py index 08cca4126..775ffcdc9 100755 --- a/src/rp2_common/hardware_clocks/scripts/vcocalc.py +++ b/src/rp2_common/hardware_clocks/scripts/vcocalc.py @@ -62,6 +62,7 @@ def validRefdiv(string): PLL_SYS_VCO_FREQ_HZ={int((args.input * 1_000_000) / best_refdiv * best_fbdiv)} PLL_SYS_POSTDIV1={best_pd1} PLL_SYS_POSTDIV2={best_pd2} + SYS_CLK_HZ={int((args.input * 1_000_000) / (best_refdiv * best_pd1 * best_pd2) * best_fbdiv)} ) """ if not args.cmake_only: