pico-sdk
pico-sdk copied to clipboard
Bug 1668 v2 - Provide method to prevent init of SYS_CLK, when left on during 'lightsleep'
During 'lightsleep' user may want to keep some clocks running (for example PIOs), but at present microPython calls 'clock-init()' causing the SYS_CLK to be reinitialized.
This patch allows microPython to provide the previously used 'sleep_en0 & sleep_en1' signifying which clocks stayed on. As most are dependant of SYS_CLK it can be inferred that this does NOT need to (/should NOT) be re-initialized.
Yes, should be a logical "&&".
I'll update PR and add some documentation. Thanks.
I removed the tabs.
Do you want the whole series resubmitted (_v3?) as a single patch/pull request?
That's not my decision to make, so leave it as-is for now unless asked otherwise :slightly_smiling_face: