From 7c78247be32007686d0d253b8ec14fb6806b2452 Mon Sep 17 00:00:00 2001 From: Grant Miller Date: Mon, 6 Dec 2021 22:36:53 -0600 Subject: [PATCH] v2: set frxth and ds in new --- embassy-stm32/src/spi/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/embassy-stm32/src/spi/mod.rs b/embassy-stm32/src/spi/mod.rs index 410e16ee..80a05aac 100644 --- a/embassy-stm32/src/spi/mod.rs +++ b/embassy-stm32/src/spi/mod.rs @@ -191,6 +191,8 @@ impl<'d, T: Instance, Tx, Rx> Spi<'d, T, Tx, Rx> { T::enable(); T::reset(); T::regs().cr2().modify(|w| { + w.set_frxth(WordSize::EightBit.frxth()); + w.set_ds(WordSize::EightBit.ds()); w.set_ssoe(false); }); T::regs().cr1().modify(|w| {