Fix interface changes
This commit is contained in:
parent
4760afd9f4
commit
24dea91f5a
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit ded0ac053d88db503bc395d8dbdbf6e7550b6859
|
||||
Subproject commit 9e8e34786222b76a7d1bbbc1baf14cd3b33cd2d7
|
Loading…
Reference in a new issue