Finish matching versions
This commit is contained in:
@@ -31,6 +31,10 @@ impl<'d, T: Instance, Tx, Rx> Spi<'d, T, Tx, Rx> {
|
|||||||
T::regs().cr1().modify(|w| {
|
T::regs().cr1().modify(|w| {
|
||||||
w.set_spe(true);
|
w.set_spe(true);
|
||||||
});
|
});
|
||||||
|
#[cfg(spi_v3)]
|
||||||
|
T::regs().cr1().modify(|w| {
|
||||||
|
w.set_cstart(true);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
tx_f.await;
|
tx_f.await;
|
||||||
@@ -76,6 +80,10 @@ impl<'d, T: Instance, Tx, Rx> Spi<'d, T, Tx, Rx> {
|
|||||||
T::regs().cr1().modify(|w| {
|
T::regs().cr1().modify(|w| {
|
||||||
w.set_spe(true);
|
w.set_spe(true);
|
||||||
});
|
});
|
||||||
|
#[cfg(spi_v3)]
|
||||||
|
T::regs().cr1().modify(|w| {
|
||||||
|
w.set_cstart(true);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
join(tx_f, rx_f).await;
|
join(tx_f, rx_f).await;
|
||||||
@@ -125,6 +133,10 @@ impl<'d, T: Instance, Tx, Rx> Spi<'d, T, Tx, Rx> {
|
|||||||
T::regs().cr1().modify(|w| {
|
T::regs().cr1().modify(|w| {
|
||||||
w.set_spe(true);
|
w.set_spe(true);
|
||||||
});
|
});
|
||||||
|
#[cfg(spi_v3)]
|
||||||
|
T::regs().cr1().modify(|w| {
|
||||||
|
w.set_cstart(true);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
join(tx_f, rx_f).await;
|
join(tx_f, rx_f).await;
|
||||||
|
@@ -31,6 +31,10 @@ impl<'d, T: Instance, Tx, Rx> Spi<'d, T, Tx, Rx> {
|
|||||||
T::regs().cr1().modify(|w| {
|
T::regs().cr1().modify(|w| {
|
||||||
w.set_spe(true);
|
w.set_spe(true);
|
||||||
});
|
});
|
||||||
|
#[cfg(spi_v3)]
|
||||||
|
T::regs().cr1().modify(|w| {
|
||||||
|
w.set_cstart(true);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
tx_f.await;
|
tx_f.await;
|
||||||
@@ -76,6 +80,10 @@ impl<'d, T: Instance, Tx, Rx> Spi<'d, T, Tx, Rx> {
|
|||||||
T::regs().cr1().modify(|w| {
|
T::regs().cr1().modify(|w| {
|
||||||
w.set_spe(true);
|
w.set_spe(true);
|
||||||
});
|
});
|
||||||
|
#[cfg(spi_v3)]
|
||||||
|
T::regs().cr1().modify(|w| {
|
||||||
|
w.set_cstart(true);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
join(tx_f, rx_f).await;
|
join(tx_f, rx_f).await;
|
||||||
@@ -125,6 +133,10 @@ impl<'d, T: Instance, Tx, Rx> Spi<'d, T, Tx, Rx> {
|
|||||||
T::regs().cr1().modify(|w| {
|
T::regs().cr1().modify(|w| {
|
||||||
w.set_spe(true);
|
w.set_spe(true);
|
||||||
});
|
});
|
||||||
|
#[cfg(spi_v3)]
|
||||||
|
T::regs().cr1().modify(|w| {
|
||||||
|
w.set_cstart(true);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
join(tx_f, rx_f).await;
|
join(tx_f, rx_f).await;
|
||||||
|
@@ -31,6 +31,7 @@ impl<'d, T: Instance, Tx, Rx> Spi<'d, T, Tx, Rx> {
|
|||||||
T::regs().cr1().modify(|w| {
|
T::regs().cr1().modify(|w| {
|
||||||
w.set_spe(true);
|
w.set_spe(true);
|
||||||
});
|
});
|
||||||
|
#[cfg(spi_v3)]
|
||||||
T::regs().cr1().modify(|w| {
|
T::regs().cr1().modify(|w| {
|
||||||
w.set_cstart(true);
|
w.set_cstart(true);
|
||||||
});
|
});
|
||||||
@@ -79,6 +80,7 @@ impl<'d, T: Instance, Tx, Rx> Spi<'d, T, Tx, Rx> {
|
|||||||
T::regs().cr1().modify(|w| {
|
T::regs().cr1().modify(|w| {
|
||||||
w.set_spe(true);
|
w.set_spe(true);
|
||||||
});
|
});
|
||||||
|
#[cfg(spi_v3)]
|
||||||
T::regs().cr1().modify(|w| {
|
T::regs().cr1().modify(|w| {
|
||||||
w.set_cstart(true);
|
w.set_cstart(true);
|
||||||
});
|
});
|
||||||
@@ -131,6 +133,7 @@ impl<'d, T: Instance, Tx, Rx> Spi<'d, T, Tx, Rx> {
|
|||||||
T::regs().cr1().modify(|w| {
|
T::regs().cr1().modify(|w| {
|
||||||
w.set_spe(true);
|
w.set_spe(true);
|
||||||
});
|
});
|
||||||
|
#[cfg(spi_v3)]
|
||||||
T::regs().cr1().modify(|w| {
|
T::regs().cr1().modify(|w| {
|
||||||
w.set_cstart(true);
|
w.set_cstart(true);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user