stm32: add rust stable support

This commit is contained in:
Dario Nieuwenhuis
2022-02-12 02:26:15 +01:00
parent f2eb438905
commit 340eb4eead
24 changed files with 149 additions and 52 deletions

View File

@@ -150,7 +150,6 @@ mod eh02 {
mod eh1 {
use super::*;
use core::convert::Infallible;
use futures::FutureExt;
impl<'d, T: GpioPin> embedded_hal_1::digital::ErrorType for ExtiInput<'d, T> {
type Error = Infallible;
@@ -165,6 +164,11 @@ mod eh1 {
Ok(self.is_low())
}
}
}
#[cfg(all(feature = "unstable-traits", feature = "nightly"))]
mod eh1a {
use super::*;
use futures::FutureExt;
impl<'d, T: GpioPin> embedded_hal_async::digital::Wait for ExtiInput<'d, T> {
type WaitForHighFuture<'a>