diff options
| author | Ulf Lilleengen <[email protected]> | 2022-09-29 11:02:43 +0200 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2022-09-29 11:27:46 +0200 |
| commit | 72c2e985bb481fbc2e138a8e98b9dbb27878f370 (patch) | |
| tree | f573324f2449b68b7b1fef579b755a67dbb406d7 /embassy-nrf/src/gpio.rs | |
| parent | 77ece3f903735b50f265ddd43520c50e0f28c1a1 (diff) | |
Update embedded-hal versions and explicitly pin
Diffstat (limited to 'embassy-nrf/src/gpio.rs')
| -rw-r--r-- | embassy-nrf/src/gpio.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/embassy-nrf/src/gpio.rs b/embassy-nrf/src/gpio.rs index 924629908..bb64e41e9 100644 --- a/embassy-nrf/src/gpio.rs +++ b/embassy-nrf/src/gpio.rs | |||
| @@ -574,7 +574,7 @@ mod eh1 { | |||
| 574 | type Error = Infallible; | 574 | type Error = Infallible; |
| 575 | } | 575 | } |
| 576 | 576 | ||
| 577 | impl<'d, T: Pin> embedded_hal_1::digital::blocking::InputPin for Input<'d, T> { | 577 | impl<'d, T: Pin> embedded_hal_1::digital::InputPin for Input<'d, T> { |
| 578 | fn is_high(&self) -> Result<bool, Self::Error> { | 578 | fn is_high(&self) -> Result<bool, Self::Error> { |
| 579 | Ok(self.is_high()) | 579 | Ok(self.is_high()) |
| 580 | } | 580 | } |
| @@ -588,7 +588,7 @@ mod eh1 { | |||
| 588 | type Error = Infallible; | 588 | type Error = Infallible; |
| 589 | } | 589 | } |
| 590 | 590 | ||
| 591 | impl<'d, T: Pin> embedded_hal_1::digital::blocking::OutputPin for Output<'d, T> { | 591 | impl<'d, T: Pin> embedded_hal_1::digital::OutputPin for Output<'d, T> { |
| 592 | fn set_high(&mut self) -> Result<(), Self::Error> { | 592 | fn set_high(&mut self) -> Result<(), Self::Error> { |
| 593 | Ok(self.set_high()) | 593 | Ok(self.set_high()) |
| 594 | } | 594 | } |
| @@ -598,7 +598,7 @@ mod eh1 { | |||
| 598 | } | 598 | } |
| 599 | } | 599 | } |
| 600 | 600 | ||
| 601 | impl<'d, T: Pin> embedded_hal_1::digital::blocking::StatefulOutputPin for Output<'d, T> { | 601 | impl<'d, T: Pin> embedded_hal_1::digital::StatefulOutputPin for Output<'d, T> { |
| 602 | fn is_set_high(&self) -> Result<bool, Self::Error> { | 602 | fn is_set_high(&self) -> Result<bool, Self::Error> { |
| 603 | Ok(self.is_set_high()) | 603 | Ok(self.is_set_high()) |
| 604 | } | 604 | } |
| @@ -615,7 +615,7 @@ mod eh1 { | |||
| 615 | /// Implement [`InputPin`] for [`Flex`]; | 615 | /// Implement [`InputPin`] for [`Flex`]; |
| 616 | /// | 616 | /// |
| 617 | /// If the pin is not in input mode the result is unspecified. | 617 | /// If the pin is not in input mode the result is unspecified. |
| 618 | impl<'d, T: Pin> embedded_hal_1::digital::blocking::InputPin for Flex<'d, T> { | 618 | impl<'d, T: Pin> embedded_hal_1::digital::InputPin for Flex<'d, T> { |
| 619 | fn is_high(&self) -> Result<bool, Self::Error> { | 619 | fn is_high(&self) -> Result<bool, Self::Error> { |
| 620 | Ok(self.is_high()) | 620 | Ok(self.is_high()) |
| 621 | } | 621 | } |
| @@ -625,7 +625,7 @@ mod eh1 { | |||
| 625 | } | 625 | } |
| 626 | } | 626 | } |
| 627 | 627 | ||
| 628 | impl<'d, T: Pin> embedded_hal_1::digital::blocking::OutputPin for Flex<'d, T> { | 628 | impl<'d, T: Pin> embedded_hal_1::digital::OutputPin for Flex<'d, T> { |
| 629 | fn set_high(&mut self) -> Result<(), Self::Error> { | 629 | fn set_high(&mut self) -> Result<(), Self::Error> { |
| 630 | Ok(self.set_high()) | 630 | Ok(self.set_high()) |
| 631 | } | 631 | } |
| @@ -635,7 +635,7 @@ mod eh1 { | |||
| 635 | } | 635 | } |
| 636 | } | 636 | } |
| 637 | 637 | ||
| 638 | impl<'d, T: Pin> embedded_hal_1::digital::blocking::StatefulOutputPin for Flex<'d, T> { | 638 | impl<'d, T: Pin> embedded_hal_1::digital::StatefulOutputPin for Flex<'d, T> { |
| 639 | fn is_set_high(&self) -> Result<bool, Self::Error> { | 639 | fn is_set_high(&self) -> Result<bool, Self::Error> { |
| 640 | Ok(self.is_set_high()) | 640 | Ok(self.is_set_high()) |
| 641 | } | 641 | } |
