aboutsummaryrefslogtreecommitdiff
path: root/examples/rp/src/bin
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-07-02 22:07:20 +0200
committerDario Nieuwenhuis <[email protected]>2023-07-02 22:16:01 +0200
commitc9b9be5b819911aaf809df9b55be7e7efa3a1fba (patch)
treebc19248a36ab6e9439e22db6fcdc835b60e61202 /examples/rp/src/bin
parentba4344429264fa7beb99ab19c09059c2d531716d (diff)
hal-common: require DerefMut for peripherals, not just Deref.
Otherwise you can create multiple drivers on the same singleton like this: ```rust let mut input = Input::new(&pin, Pull::None); let mut output = Output::new(&pin, Level::Low, Speed::Low); input.is_high(); output.set_high(); input.is_high(); output.set_high(); ``` Thanks @pennae for reporting.
Diffstat (limited to 'examples/rp/src/bin')
0 files changed, 0 insertions, 0 deletions