Add powman_timer_set_1khz_tick_source_default function - #3110
Open
will-v-pi wants to merge 2 commits into
Open
Conversation
Adds `powman_timer_set_1khz_tick_source_default` function to be used instead of `powman_timer_set_1khz_tick_source_xosc` inside the SDK, to support users turning off the XOSC Adds `PICO_POWMAN_DEFAULT_TICK_SOURCE_XOSC` and `PICO_POWMAN_DEFAULT_TICK_SOURCE_LPOSC` defines to toggle the behaviour of the function Default `PICO_POWMAN_DEFAULT_TICK_SOURCE_LPOSC` to `!PICO_POWMAN_DEFAULT_TICK_SOURCE_XOSC` for simplicity, so you can just set `PICO_POWMAN_DEFAULT_TICK_SOURCE_XOSC=0` to use the LPOCS, but keeping separate defines in case extra default tick sources are added in future
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds
powman_timer_set_1khz_tick_source_defaultfunction to be used instead ofpowman_timer_set_1khz_tick_source_xoscinside the SDK, to support users turning off the XOSCAdds
PICO_POWMAN_DEFAULT_TICK_SOURCE_XOSCandPICO_POWMAN_DEFAULT_TICK_SOURCE_LPOSCdefines to toggle the behaviour of the functionDefault
PICO_POWMAN_DEFAULT_TICK_SOURCE_LPOSCto!PICO_POWMAN_DEFAULT_TICK_SOURCE_XOSCfor simplicity, so you can just setPICO_POWMAN_DEFAULT_TICK_SOURCE_XOSC=0to use the LPOSC, but keeping separate defines in case extra default tick sources are added in future