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 authored and eldruin committed Sep 13, 2024
1 parent 19eb744 commit eaa235c
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 eaa235c

Please sign in to comment.