diff options
| author | Grant Miller <[email protected]> | 2021-12-06 22:36:53 -0600 |
|---|---|---|
| committer | Grant Miller <[email protected]> | 2021-12-06 22:36:53 -0600 |
| commit | 7c78247be32007686d0d253b8ec14fb6806b2452 (patch) | |
| tree | 0d56a4bb258f955235db8e4d822b02619a5dba2b | |
| parent | d76bc45e3029718e954ce7e2ffd950211ce962c3 (diff) | |
v2: set frxth and ds in new
| -rw-r--r-- | embassy-stm32/src/spi/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy-stm32/src/spi/mod.rs b/embassy-stm32/src/spi/mod.rs index 410e16ee2..80a05aac6 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> { | |||
| 191 | T::enable(); | 191 | T::enable(); |
| 192 | T::reset(); | 192 | T::reset(); |
| 193 | T::regs().cr2().modify(|w| { | 193 | T::regs().cr2().modify(|w| { |
| 194 | w.set_frxth(WordSize::EightBit.frxth()); | ||
| 195 | w.set_ds(WordSize::EightBit.ds()); | ||
| 194 | w.set_ssoe(false); | 196 | w.set_ssoe(false); |
| 195 | }); | 197 | }); |
| 196 | T::regs().cr1().modify(|w| { | 198 | T::regs().cr1().modify(|w| { |
