Skip to content

Add powman_timer_set_1khz_tick_source_default function - #3110

Open
will-v-pi wants to merge 2 commits into
developfrom
powman-default-tick
Open

Add powman_timer_set_1khz_tick_source_default function#3110
will-v-pi wants to merge 2 commits into
developfrom
powman-default-tick

Conversation

@will-v-pi

Copy link
Copy Markdown
Contributor

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 LPOCS, but keeping separate defines in case extra default tick sources are added in future
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AON tick generation: selection of the LPOSC as timer source when XOSC is not the reference clock

1 participant