Skip to content

Commit eaa235c

Browse files
BryanKadzbaneldruin
authored andcommitted
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.
1 parent 19eb744 commit eaa235c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/signature.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ impl FlashSize {
8282
#[derive(Debug)]
8383
#[repr(C)]
8484
pub struct VrefCal(u16);
85+
#[cfg(any(feature = "svd-f7x2", feature = "svd-f7x3", feature = "svd-f730"))]
86+
define_ptr_type!(VrefCal, 0x1FF0_7A2A);
8587
#[cfg(not(any(feature = "svd-f7x2", feature = "svd-f7x3", feature = "svd-f730")))]
8688
define_ptr_type!(VrefCal, 0x1FF0_F44A);
8789

@@ -96,6 +98,8 @@ impl VrefCal {
9698
#[derive(Debug)]
9799
#[repr(C)]
98100
pub struct VtempCal30(u16);
101+
#[cfg(any(feature = "svd-f7x2", feature = "svd-f7x3", feature = "svd-f730"))]
102+
define_ptr_type!(VtempCal30, 0x1FF0_7A2C);
99103
#[cfg(not(any(feature = "svd-f7x2", feature = "svd-f7x3", feature = "svd-f730")))]
100104
define_ptr_type!(VtempCal30, 0x1FF0_F44C);
101105

@@ -110,6 +114,8 @@ impl VtempCal30 {
110114
#[derive(Debug)]
111115
#[repr(C)]
112116
pub struct VtempCal110(u16);
117+
#[cfg(any(feature = "svd-f7x2", feature = "svd-f7x3", feature = "svd-f730"))]
118+
define_ptr_type!(VtempCal110, 0x1FF0_7A2E);
113119
#[cfg(not(any(feature = "svd-f7x2", feature = "svd-f7x3", feature = "svd-f730")))]
114120
define_ptr_type!(VtempCal110, 0x1FF0_F44E);
115121

0 commit comments

Comments
 (0)