Add the required SYS_CLK_HZ definition to the suggested cmake output (#2022)

Fixes #2014
This commit is contained in:
andygpz11 2024-11-06 16:24:10 +00:00 committed by GitHub
parent 11961b97e4
commit 6587f5cc9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -62,6 +62,7 @@ f"""target_compile_definitions({args.cmake_executable_name} PRIVATE
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: