Skip to content

Commit da25608

Browse files
authored
Merge pull request #723 from rursprung/update-to-eh-1
update to `embedded-hal` v1.0.0 (no more RC!)
2 parents f848188 + cdfbbb2 commit da25608

File tree

3 files changed

+4
-30
lines changed

3 files changed

+4
-30
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010
### Changed
1111

1212
- shorten gpio ptr access
13-
- bump embedded-hal to `1.0.0-rc.3`
13+
- bump embedded-hal to `1.0` (no more RC!)
1414

1515
## [v0.19.0] - 2023-12-11
1616

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ embedded-dma = "0.2.0"
4040
bare-metal = { version = "1" }
4141
void = { default-features = false, version = "1.0.2" }
4242
embedded-hal = { features = ["unproven"], version = "0.2.7" }
43-
embedded-hal-nb = "=1.0.0-rc.3"
43+
embedded-hal-nb = "1.0"
4444
display-interface = { version = "0.4.1", optional = true }
4545
fugit = "0.3.7"
4646
fugit-timer = "0.1.3"
@@ -55,7 +55,7 @@ version = "0.3.14"
5555
default-features = false
5656

5757
[dependencies.embedded-hal-one]
58-
version = "=1.0.0-rc.3"
58+
version = "1.0"
5959
package = "embedded-hal"
6060

6161
[dependencies.stm32_i2s_v12x]

src/gpio/hal_1.rs

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ use super::{
44
dynamic::PinModeError, marker, DynamicPin, ErasedPin, Output, PartiallyErasedPin, Pin,
55
};
66

7-
use embedded_hal_one::digital::{
8-
ErrorType, InputPin, OutputPin, StatefulOutputPin, ToggleableOutputPin,
9-
};
7+
use embedded_hal_one::digital::{ErrorType, InputPin, OutputPin, StatefulOutputPin};
108

119
// Implementations for `Pin`
1210
impl<const P: char, const N: u8, MODE> ErrorType for Pin<P, N, MODE> {
@@ -39,14 +37,6 @@ impl<const P: char, const N: u8, MODE> StatefulOutputPin for Pin<P, N, Output<MO
3937
}
4038
}
4139

42-
impl<const P: char, const N: u8, MODE> ToggleableOutputPin for Pin<P, N, Output<MODE>> {
43-
#[inline(always)]
44-
fn toggle(&mut self) -> Result<(), Self::Error> {
45-
self.toggle();
46-
Ok(())
47-
}
48-
}
49-
5040
impl<const P: char, const N: u8, MODE> InputPin for Pin<P, N, MODE>
5141
where
5242
MODE: marker::Readable,
@@ -93,14 +83,6 @@ impl<MODE> StatefulOutputPin for ErasedPin<Output<MODE>> {
9383
}
9484
}
9585

96-
impl<MODE> ToggleableOutputPin for ErasedPin<Output<MODE>> {
97-
#[inline(always)]
98-
fn toggle(&mut self) -> Result<(), Self::Error> {
99-
self.toggle();
100-
Ok(())
101-
}
102-
}
103-
10486
impl<MODE> InputPin for ErasedPin<MODE>
10587
where
10688
MODE: marker::Readable,
@@ -147,14 +129,6 @@ impl<const P: char, MODE> StatefulOutputPin for PartiallyErasedPin<P, Output<MOD
147129
}
148130
}
149131

150-
impl<const P: char, MODE> ToggleableOutputPin for PartiallyErasedPin<P, Output<MODE>> {
151-
#[inline(always)]
152-
fn toggle(&mut self) -> Result<(), Self::Error> {
153-
self.toggle();
154-
Ok(())
155-
}
156-
}
157-
158132
impl<const P: char, MODE> InputPin for PartiallyErasedPin<P, MODE>
159133
where
160134
MODE: marker::Readable,

0 commit comments

Comments
 (0)