Skip to content

Commit

Permalink
Add the required SYS_CLK_HZ definition to the suggested cmake output (
Browse files Browse the repository at this point in the history
#2022)

Fixes #2014
  • Loading branch information
andygpz11 authored Nov 6, 2024
1 parent 11961b9 commit 6587f5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rp2_common/hardware_clocks/scripts/vcocalc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6587f5c

Please sign in to comment.