Skip to content

Commit

Permalink
Add back three registers for 7x2/7x3/730 chips
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
BryanKadzban committed Sep 12, 2024
1 parent d9421e2 commit b52e734
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand All @@ -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);

Expand Down

0 comments on commit b52e734

Please sign in to comment.