diff --git a/embassy-stm32/src/crc/v1.rs b/embassy-stm32/src/crc/v1.rs index 52ccca660..b95df8838 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 ded0ac053..9e8e34786 160000 --- a/stm32-data +++ b/stm32-data @@ -1 +1 @@ -Subproject commit ded0ac053d88db503bc395d8dbdbf6e7550b6859 +Subproject commit 9e8e34786222b76a7d1bbbc1baf14cd3b33cd2d7