mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
Add the required SYS_CLK_HZ definition to the suggested cmake output (#2022)
Fixes #2014
This commit is contained in:
parent
11961b97e4
commit
6587f5cc9a
1 changed files with 1 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue