From eaa235c4067a96e60c45e482d44cb97cacf4ca33 Mon Sep 17 00:00:00 2001 From: Bryan Kadzban Date: Thu, 12 Sep 2024 13:43:20 -0700 Subject: [PATCH] Add back three registers for 7x2/7x3/730 chips These Vref calibration and temperature sample registers do actually exist for those chips, but aren't documented in the reference manuals for any F7 chip. (The registers are documented in the datasheets instead.) Add them back. --- src/signature.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/signature.rs b/src/signature.rs index 29d2460..68c4123 100644 --- a/src/signature.rs +++ b/src/signature.rs @@ -82,6 +82,8 @@ impl FlashSize { #[derive(Debug)] #[repr(C)] pub struct VrefCal(u16); +#[cfg(any(feature = "svd-f7x2", feature = "svd-f7x3", feature = "svd-f730"))] +define_ptr_type!(VrefCal, 0x1FF0_7A2A); #[cfg(not(any(feature = "svd-f7x2", feature = "svd-f7x3", feature = "svd-f730")))] define_ptr_type!(VrefCal, 0x1FF0_F44A); @@ -96,6 +98,8 @@ impl VrefCal { #[derive(Debug)] #[repr(C)] pub struct VtempCal30(u16); +#[cfg(any(feature = "svd-f7x2", feature = "svd-f7x3", feature = "svd-f730"))] +define_ptr_type!(VtempCal30, 0x1FF0_7A2C); #[cfg(not(any(feature = "svd-f7x2", feature = "svd-f7x3", feature = "svd-f730")))] define_ptr_type!(VtempCal30, 0x1FF0_F44C); @@ -110,6 +114,8 @@ impl VtempCal30 { #[derive(Debug)] #[repr(C)] pub struct VtempCal110(u16); +#[cfg(any(feature = "svd-f7x2", feature = "svd-f7x3", feature = "svd-f730"))] +define_ptr_type!(VtempCal110, 0x1FF0_7A2E); #[cfg(not(any(feature = "svd-f7x2", feature = "svd-f7x3", feature = "svd-f730")))] define_ptr_type!(VtempCal110, 0x1FF0_F44E);