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

@ -664,7 +664,6 @@ mod eh02 {
#[cfg(feature = "unstable-traits")]
mod eh1 {
use super::*;
use core::future::Future;
impl<'d, T: Instance, Tx, Rx> embedded_hal_1::spi::ErrorType for Spi<'d, T, Tx, Rx> {
type Error = Error;
@ -680,6 +679,12 @@ mod eh1 {
}
}
}
}
#[cfg(all(feature = "unstable-traits", feature = "nightly"))]
mod eh1a {
use super::*;
use core::future::Future;
impl<'d, T: Instance, Tx: TxDma<T>, Rx> embedded_hal_async::spi::Write<u8> for Spi<'d, T, Tx, Rx> {
type WriteFuture<'a>