Skip to content

Commit 7ce7760

Browse files
committed
bump hal-1, remove ToggleableOutputPin impls
1 parent 58a69ef commit 7ce7760

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
@@ -41,7 +41,7 @@ features = ["unproven"]
4141
version = "0.2.4"
4242

4343
[dependencies.embedded-hal-one]
44-
version = "1.0.0-rc.3"
44+
version = "1.0.0"
4545
package = "embedded-hal"
4646

4747
[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>> {
@@ -698,16 +688,6 @@ macro_rules! gpio {
698688

699689
impl<MODE> toggleable::Default for $PXi<Output<MODE>> {}
700690

701-
impl<MODE> hal1::digital::ToggleableOutputPin for $PXi<Output<MODE>> {
702-
fn toggle(&mut self) -> Result<(), Self::Error> {
703-
if <Self as hal1::digital::StatefulOutputPin>::is_set_high(self)? {
704-
<Self as hal1::digital::OutputPin>::set_low(self)
705-
} else {
706-
<Self as hal1::digital::OutputPin>::set_high(self)
707-
}
708-
}
709-
}
710-
711691
impl<MODE> InputPin for $PXi<Output<MODE>> {
712692
type Error = ();
713693

0 commit comments

Comments
 (0)