aboutsummaryrefslogtreecommitdiff
path: root/examples/boot/bootloader
diff options
context:
space:
mode:
authorpennae <[email protected]>2023-08-05 00:02:39 +0200
committerpennae <[email protected]>2023-08-05 00:57:29 +0200
commit3c5f011245948d44dc88286ecd4e1554c8e4b28c (patch)
treeafda418d70aff3726a30f6a2d8ba6bdb6ff4bfd9 /examples/boot/bootloader
parent30358c435e29eae0be1a8d5a991794ed4ba264ab (diff)
rp: add generic dormant-sleep functionality
this is "generic" in that it doesn't require the user to set up anything specific to go to dormant sleep, unlike the C sdk which requires clock sources to be configured explicitly and doesn't much care about PLLs. we will instead take a snapshot of the current clock configuration, switch to a known clock source (very slow rosc, in this case), go to sleep, and on wakeup undo everything we've done (ensuring stability of PLLs and such). tested locally, but adding tests to HIL seems infeasible. we'd need at least another pico or extensive modifications to teleprobe since dormant-sleep breaks SWD (except to rescue-dp), neither of which is feasible at this point. if we *did* want to add tests we should check for both rtc wakeups (with an external rtc clock source) and gpio wakeups.
Diffstat (limited to 'examples/boot/bootloader')
0 files changed, 0 insertions, 0 deletions