From 0aa73f58e2f71f4578ff23f79f3b1a2c9d6d9098 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Tue, 7 Jun 2022 00:28:26 +0200 Subject: [PATCH] Update stm32-metapac. --- embassy-stm32/src/crc/v2v3.rs | 8 ++++---- stm32-data | 2 +- stm32-metapac-gen/Cargo.toml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/embassy-stm32/src/crc/v2v3.rs b/embassy-stm32/src/crc/v2v3.rs index 77cd3da1..08e40a11 100644 --- a/embassy-stm32/src/crc/v2v3.rs +++ b/embassy-stm32/src/crc/v2v3.rs @@ -133,7 +133,7 @@ impl<'d> Crc<'d> { /// Feeds a byte into the CRC peripheral. Returns the computed checksum. pub fn feed_byte(&mut self, byte: u8) -> u32 { unsafe { - PAC_CRC.dr8().write_value(byte as u32); + PAC_CRC.dr8().write_value(byte); PAC_CRC.dr().read() } } @@ -142,7 +142,7 @@ impl<'d> Crc<'d> { pub fn feed_bytes(&mut self, bytes: &[u8]) -> u32 { for byte in bytes { unsafe { - PAC_CRC.dr8().write_value(*byte as u32); + PAC_CRC.dr8().write_value(*byte); } } unsafe { PAC_CRC.dr().read() } @@ -150,7 +150,7 @@ impl<'d> Crc<'d> { /// Feeds a halfword into the CRC peripheral. Returns the computed checksum. pub fn feed_halfword(&mut self, halfword: u16) -> u32 { unsafe { - PAC_CRC.dr16().write_value(halfword as u32); + PAC_CRC.dr16().write_value(halfword); PAC_CRC.dr().read() } } @@ -158,7 +158,7 @@ impl<'d> Crc<'d> { pub fn feed_halfwords(&mut self, halfwords: &[u16]) -> u32 { for halfword in halfwords { unsafe { - PAC_CRC.dr16().write_value(*halfword as u32); + PAC_CRC.dr16().write_value(*halfword); } } unsafe { PAC_CRC.dr().read() } diff --git a/stm32-data b/stm32-data index b2d7a9f5..aa2e6399 160000 --- a/stm32-data +++ b/stm32-data @@ -1 +1 @@ -Subproject commit b2d7a9f5de7dc3ae17c87c1ff94e13a822d18e74 +Subproject commit aa2e63996c0fe35d680c9c48917c07b042905e4a diff --git a/stm32-metapac-gen/Cargo.toml b/stm32-metapac-gen/Cargo.toml index 0e10b21e..5cf14208 100644 --- a/stm32-metapac-gen/Cargo.toml +++ b/stm32-metapac-gen/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" [dependencies] regex = "1.5.4" -chiptool = { git = "https://github.com/embassy-rs/chiptool", rev = "d5c0f6174ec7f03b5004042b788fb9fddcc7c34f" } +chiptool = { git = "https://github.com/embassy-rs/chiptool", rev = "28ffa8a19d84914089547f52900ffb5877a5dc23" } serde = { version = "1.0.130", features = [ "derive" ] } serde_yaml = "0.8.21" proc-macro2 = "1.0.29"