Skip to content

Conversation

@Martinhoff-maker
Copy link
Member

@Martinhoff-maker Martinhoff-maker commented Dec 1, 2025

This PR removes the definition of SYS_CLOCK_HW_CYCLES_PER_SEC in the board defconfig and defined it from the dts in soc defconfig.
It also gathered all default definitions of of SYS_CLOCK_TICKS_PER_SEC and put it at the same place.
The default value of this symbol when Silabs sleeptimer is used has also been updated to reflect the frequency of the sleeptimer
chosen peripheral (sysrtc in the case of siwx91x SoC)

This patch introduce configuration of the symbol
'SYS_CLOCK_HW_CYCLES_PER_SEC' with dts entry rather than a hardcoded
value.

Signed-off-by: Martin Hoff <[email protected]>
This patch put in the same place the default value for
SYS_CLOCK_TICKS_PER_SEC. It also apply the sleeptimer clock frequency
when sleeptimer is used for sys clock.

Signed-off-by: Martin Hoff <[email protected]>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 1, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants