aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-stm32/src/crc/v1.rs6
m---------stm32-data0
2 files changed, 3 insertions, 3 deletions
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 @@
1use crate::pac::CRC as PAC_CRC; 1use crate::pac::{CRC as PAC_CRC};
2use crate::peripherals::CRC; 2use crate::peripherals::CRC;
3use crate::rcc::sealed::RccPeripheral; 3use crate::rcc::sealed::RccPeripheral;
4 4
@@ -23,7 +23,7 @@ impl Crc {
23 23
24 /// Resets the CRC unit to default value (0xFFFF_FFFF) 24 /// Resets the CRC unit to default value (0xFFFF_FFFF)
25 pub fn init(&mut self) { 25 pub fn init(&mut self) {
26 unsafe { PAC_CRC.cr().modify(|w| w.set_reset(true)) }; 26 unsafe { PAC_CRC.cr().write(|w| w.set_reset(true)) };
27 } 27 }
28 28
29 /// Feeds a word to the peripheral and returns the current CRC value 29 /// Feeds a word to the peripheral and returns the current CRC value
@@ -38,7 +38,7 @@ impl Crc {
38 pub fn feed_words(&mut self, words: &[u32]) -> u32 { 38 pub fn feed_words(&mut self, words: &[u32]) -> u32 {
39 for word in words { 39 for word in words {
40 unsafe { 40 unsafe {
41 PAC_CRC.dr().write_value(*word); 41 PAC_CRC.dr().write_value(*word)
42 } 42 }
43 } 43 }
44 44
diff --git a/stm32-data b/stm32-data
Subproject ded0ac053d88db503bc395d8dbdbf6e7550b685 Subproject 9e8e34786222b76a7d1bbbc1baf14cd3b33cd2d