diff options
| author | Joshua Salzedo <[email protected]> | 2021-09-26 17:24:48 -0700 |
|---|---|---|
| committer | Joshua Salzedo <[email protected]> | 2021-09-26 17:24:48 -0700 |
| commit | 24dea91f5abdd4029c7c912dd01d92313da58df3 (patch) | |
| tree | 71d419e66f76ba3754209a7a101fbf771f4589ca /embassy-stm32/src/crc | |
| parent | 4760afd9f44738603fee36f49a9e0e29bf784889 (diff) | |
Fix interface changes
Diffstat (limited to 'embassy-stm32/src/crc')
| -rw-r--r-- | embassy-stm32/src/crc/v1.rs | 6 |
1 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 @@ | |||
| 1 | use crate::pac::CRC as PAC_CRC; | 1 | use crate::pac::{CRC as PAC_CRC}; |
| 2 | use crate::peripherals::CRC; | 2 | use crate::peripherals::CRC; |
| 3 | use crate::rcc::sealed::RccPeripheral; | 3 | use 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 | ||
