diff options
| author | Gerzain Mata <[email protected]> | 2025-11-03 15:00:18 -0700 |
|---|---|---|
| committer | Gerzain Mata <[email protected]> | 2025-11-03 15:07:59 -0700 |
| commit | 646cd95a72d08aef7cbf207e0825aa7899676f2b (patch) | |
| tree | 8b9daa400b10fa06faac8789af33298bd547181c /embassy-stm32/src/vrefbuf | |
| parent | 345efc383fa9afabaf23b629f0937855ea4c754f (diff) | |
Fixed VREFBUF values to match reference manual
Diffstat (limited to 'embassy-stm32/src/vrefbuf')
| -rw-r--r-- | embassy-stm32/src/vrefbuf/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/embassy-stm32/src/vrefbuf/mod.rs b/embassy-stm32/src/vrefbuf/mod.rs index b061306a0..43dd9c800 100644 --- a/embassy-stm32/src/vrefbuf/mod.rs +++ b/embassy-stm32/src/vrefbuf/mod.rs | |||
| @@ -14,10 +14,10 @@ pub struct VoltageReferenceBuffer<'d, T: Instance> { | |||
| 14 | #[cfg(rcc_wba)] | 14 | #[cfg(rcc_wba)] |
| 15 | fn get_refbuf_trim(voltage_scale: Vrs) -> usize { | 15 | fn get_refbuf_trim(voltage_scale: Vrs) -> usize { |
| 16 | match voltage_scale { | 16 | match voltage_scale { |
| 17 | Vrs::VREF0 => 0x0BFA_07A8usize, | 17 | Vrs::VREF0 => 0x0BFA_07ABusize, |
| 18 | Vrs::VREF1 => 0x0BFA_07A9usize, | 18 | Vrs::VREF1 => 0x0BFA_07AAusize, |
| 19 | Vrs::VREF2 => 0x0BFA_07AAusize, | 19 | Vrs::VREF2 => 0x0BFA_07A9usize, |
| 20 | Vrs::VREF3 => 0x0BFA_07ABusize, | 20 | Vrs::VREF3 => 0x0BFA_07A8usize, |
| 21 | _ => panic!("Incorrect Vrs setting!"), | 21 | _ => panic!("Incorrect Vrs setting!"), |
| 22 | } | 22 | } |
| 23 | } | 23 | } |
