Commit e08aa51
committed
Make
This allows to create nice generic driver APIs with `impl ConfigurablePpi` arguments
Example:
```` rust
fn link_pins(
gpiote: &hal::gpiote::Gpiote,
mut ppi: impl ConfigurablePpi,
out_pin: Pin<Output<PushPull>>,
in_pin: Pin<Input<PullUp>>,
) {
// ...
}
`````ConfigurablePpi a subtrait of Ppi
1 parent 47c478c commit e08aa51
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
0 commit comments