stm32 lptim driver sleeping forever depends on SYSTEM_CLOCK_SLOPPY_IDLE #67390
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The stm32 lptim driver is called by the application which wants to sleep forever.
It calls the k_msleep function with a int32_t ticks parameter meaning either never wakeUp or wakeUp on max possible timeout. This meaning depends on the the SYSTEM_CLOCK_SLOPPY_IDLE
when CONFIG_SYSTEM_CLOCK_SLOPPY_IDLE is set, then application is supposed to call k_msleep(K_TICKS_FOREVER); will stop lptim counting
when CONFIG_SYSTEM_CLOCK_SLOPPY_IDLE is not set, then application is supposed to call k_msleep(INT_MAX); and lptim will wakeUp the system at its max possible timeout value.
This PR just add comment to clarify this meaning.
Fixes #65008