aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorpennae <[email protected]>2023-05-17 02:52:29 +0200
committerpennae <[email protected]>2023-05-17 21:36:19 +0200
commit053d5629ba88a67f4b126bd7ac4b478fbe00d17f (patch)
tree83b92e3755c67c26f785ddeb260d593b29b98bbc /examples
parent1b3d9a0aeffd9e0619126c3b2dc42520cc2b4209 (diff)
rp/clocks: require GpinPin for gpin config
we'll take static ownership of an entire pin (not just a limited reference), otherwise we cannot at all guarantee that the pin will not be reused for something else while still in use. in theory we could limit the liftime of this use, but that would require attaching lifetimes to ClockConfig (and subsequently the main config), passing those through init(), and returning an object that undoes the gpin configuration on drop. that's a lot unnecessary support code while we don't have runtime clock reconfig.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions