diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-12-14 14:09:59 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-14 14:09:59 +0000 |
| commit | 1a7b9e3279b4920392cfb1a6614968d8be4eee2a (patch) | |
| tree | f4e0387818d6a12fc47349e9376ea12355e8b95f /docs/modules/ROOT/examples/basic/src/main.rs | |
| parent | 3f3b7d066ebfeee76dc9467ee3c4c05468730e40 (diff) | |
| parent | 153b1bbdbfc38b7973b27c05589514bee993e690 (diff) | |
Merge #542
542: nrf/gpiote: remove PortInput, move impls to Input/FlexPin. r=Dirbaio a=Dirbaio
`PortInput` is just a dumb wrapper around `Input`, it has no reason whatsoever to exist. This PR moves the `wait_for_x` functionality to `Input` directly.
It also adds it to `FlexPin` for completeness and consistency with `Input`.
(The reason `PortInput` exists is a while ago `GPIOTE` was an owned singleton that you had to initialize, so `PortInput::new()` would require it to enforce it's been initialized. This doesn't apply anymore now that GPIOTE is "global")
Co-authored-by: Dario Nieuwenhuis <[email protected]>
Diffstat (limited to 'docs/modules/ROOT/examples/basic/src/main.rs')
0 files changed, 0 insertions, 0 deletions
