Add powman_timer_set_1khz_tick_source_default function #3110

Open
will-v-pi wants to merge 2 commits from powman-default-tick into develop
will-v-pi commented 2026-08-04 06:49:04 -05:00 (Migrated from github.com)

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 LPOSC, but keeping separate defines in case extra default tick sources are added in future

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 LPOSC, but keeping separate defines in case extra default tick sources are added in future
kilograham (Migrated from github.com) reviewed 2026-08-04 06:49:04 -05:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'powman-default-tick:powman-default-tick'
git switch 'powman-default-tick'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'develop'
git merge --no-ff 'powman-default-tick'
git switch 'powman-default-tick'
git rebase 'develop'
git switch 'develop'
git merge --ff-only 'powman-default-tick'
git switch 'powman-default-tick'
git rebase 'develop'
git switch 'develop'
git merge --no-ff 'powman-default-tick'
git switch 'develop'
git merge --squash 'powman-default-tick'
git switch 'develop'
git merge --ff-only 'powman-default-tick'
git switch 'develop'
git merge 'powman-default-tick'
git push origin 'develop'
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-raspberrypi/pico-sdk!3110
No description provided.