From 24dea91f5abdd4029c7c912dd01d92313da58df3 Mon Sep 17 00:00:00 2001 From: Joshua Salzedo Date: Sun, 26 Sep 2021 17:24:48 -0700 Subject: [PATCH] Fix interface changes --- embassy-stm32/src/crc/v1.rs | 6 +++--- stm32-data | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/embassy-stm32/src/crc/v1.rs b/embassy-stm32/src/crc/v1.rs index 52ccca66..b95df883 100644 --- a/embassy-stm32/src/crc/v1.rs +++ b/embassy-stm32/src/crc/v1.rs @@ -1,4 +1,4 @@ -use crate::pac::CRC as PAC_CRC; +use crate::pac::{CRC as PAC_CRC}; use crate::peripherals::CRC; use crate::rcc::sealed::RccPeripheral; @@ -23,7 +23,7 @@ impl Crc { /// Resets the CRC unit to default value (0xFFFF_FFFF) pub fn init(&mut self) { - unsafe { PAC_CRC.cr().modify(|w| w.set_reset(true)) }; + unsafe { PAC_CRC.cr().write(|w| w.set_reset(true)) }; } /// Feeds a word to the peripheral and returns the current CRC value @@ -38,7 +38,7 @@ impl Crc { pub fn feed_words(&mut self, words: &[u32]) -> u32 { for word in words { unsafe { - PAC_CRC.dr().write_value(*word); + PAC_CRC.dr().write_value(*word) } } diff --git a/stm32-data b/stm32-data index ded0ac05..9e8e3478 160000 --- a/stm32-data +++ b/stm32-data @@ -1 +1 @@ -Subproject commit ded0ac053d88db503bc395d8dbdbf6e7550b6859 +Subproject commit 9e8e34786222b76a7d1bbbc1baf14cd3b33cd2d7