Skip to content

Commit 51f8aea

Browse files
authored
Merge pull request #4834 from leftger/feat/wba-fix-vrefbuf-values
Fixed STM32WBA VREFBUF values to match reference manual
2 parents e876838 + 646cd95 commit 51f8aea

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

embassy-stm32/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4040
- low-power: update rtc api to allow reconfig
4141
- adc: consolidate ringbuffer
4242
- feat: Added RTC low-power support for STM32WLEx ([#4716](https://github.com/embassy-rs/embassy/pull/4716))
43+
- fix: Correct STM32WBA VREFBUFTRIM values
4344

4445
## 0.4.0 - 2025-08-26
4546

embassy-stm32/src/vrefbuf/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ pub struct VoltageReferenceBuffer<'d, T: Instance> {
1414
#[cfg(rcc_wba)]
1515
fn get_refbuf_trim(voltage_scale: Vrs) -> usize {
1616
match voltage_scale {
17-
Vrs::VREF0 => 0x0BFA_07A8usize,
18-
Vrs::VREF1 => 0x0BFA_07A9usize,
19-
Vrs::VREF2 => 0x0BFA_07AAusize,
20-
Vrs::VREF3 => 0x0BFA_07ABusize,
17+
Vrs::VREF0 => 0x0BFA_07ABusize,
18+
Vrs::VREF1 => 0x0BFA_07AAusize,
19+
Vrs::VREF2 => 0x0BFA_07A9usize,
20+
Vrs::VREF3 => 0x0BFA_07A8usize,
2121
_ => panic!("Incorrect Vrs setting!"),
2222
}
2323
}

0 commit comments

Comments
 (0)