Skip to content

Commit 6587f5c

Browse files
authored
Add the required SYS_CLK_HZ definition to the suggested cmake output (#2022)
Fixes #2014
1 parent 11961b9 commit 6587f5c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rp2_common/hardware_clocks/scripts/vcocalc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def validRefdiv(string):
6262
PLL_SYS_VCO_FREQ_HZ={int((args.input * 1_000_000) / best_refdiv * best_fbdiv)}
6363
PLL_SYS_POSTDIV1={best_pd1}
6464
PLL_SYS_POSTDIV2={best_pd2}
65+
SYS_CLK_HZ={int((args.input * 1_000_000) / (best_refdiv * best_pd1 * best_pd2) * best_fbdiv)}
6566
)
6667
"""
6768
if not args.cmake_only:

0 commit comments

Comments
 (0)