v2: set frxth and ds in new
This commit is contained in:
parent
d76bc45e30
commit
7c78247be3
@ -191,6 +191,8 @@ impl<'d, T: Instance, Tx, Rx> Spi<'d, T, Tx, Rx> {
|
|||||||
T::enable();
|
T::enable();
|
||||||
T::reset();
|
T::reset();
|
||||||
T::regs().cr2().modify(|w| {
|
T::regs().cr2().modify(|w| {
|
||||||
|
w.set_frxth(WordSize::EightBit.frxth());
|
||||||
|
w.set_ds(WordSize::EightBit.ds());
|
||||||
w.set_ssoe(false);
|
w.set_ssoe(false);
|
||||||
});
|
});
|
||||||
T::regs().cr1().modify(|w| {
|
T::regs().cr1().modify(|w| {
|
||||||
|
Loading…
Reference in New Issue
Block a user