Skip to content

Commit 693a092

Browse files
techmccatusbalbin
authored andcommitted
bump hal-1, remove ToggleableOutputPin impls
1 parent 86e3d76 commit 693a092

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ features = ["unproven"]
4444
version = "0.2.4"
4545

4646
[dependencies.embedded-hal-one]
47-
version = "1.0.0-rc.3"
47+
version = "1.0.0"
4848
package = "embedded-hal"
4949

5050
[dependencies.embedded-dma]

src/gpio.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -333,16 +333,6 @@ macro_rules! gpio {
333333
}
334334
}
335335

336-
impl<MODE> hal1::digital::ToggleableOutputPin for $PXx<Output<MODE>> {
337-
fn toggle(&mut self) -> Result<(), Self::Error> {
338-
if <Self as hal1::digital::StatefulOutputPin>::is_set_high(self)? {
339-
<Self as hal1::digital::OutputPin>::set_low(self)
340-
} else {
341-
<Self as hal1::digital::OutputPin>::set_high(self)
342-
}
343-
}
344-
}
345-
346336
impl<MODE> toggleable::Default for $PXx<Output<MODE>> {}
347337

348338
impl<MODE> InputPin for $PXx<Output<MODE>> {
@@ -690,16 +680,6 @@ macro_rules! gpio {
690680

691681
impl<MODE> toggleable::Default for $PXi<Output<MODE>> {}
692682

693-
impl<MODE> hal1::digital::ToggleableOutputPin for $PXi<Output<MODE>> {
694-
fn toggle(&mut self) -> Result<(), Self::Error> {
695-
if <Self as hal1::digital::StatefulOutputPin>::is_set_high(self)? {
696-
<Self as hal1::digital::OutputPin>::set_low(self)
697-
} else {
698-
<Self as hal1::digital::OutputPin>::set_high(self)
699-
}
700-
}
701-
}
702-
703683
impl<MODE> InputPin for $PXi<Output<MODE>> {
704684
type Error = ();
705685

0 commit comments

Comments
 (0)