Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions embassy-stm32/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- feat: stm32/fdcan: add ability to control automatic recovery from bus off ([#4821](https://github.com/embassy-rs/embassy/pull/4821))
- low-power: update rtc api to allow reconfig
- feat: Added RTC low-power support for STM32WLEx ([#4716](https://github.com/embassy-rs/embassy/pull/4716))
- fix: Correct STM32WBA VREFBUFTRIM values

## 0.4.0 - 2025-08-26

Expand Down
8 changes: 4 additions & 4 deletions embassy-stm32/src/vrefbuf/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ pub struct VoltageReferenceBuffer<'d, T: Instance> {
#[cfg(rcc_wba)]
fn get_refbuf_trim(voltage_scale: Vrs) -> usize {
match voltage_scale {
Vrs::VREF0 => 0x0BFA_07A8usize,
Vrs::VREF1 => 0x0BFA_07A9usize,
Vrs::VREF2 => 0x0BFA_07AAusize,
Vrs::VREF3 => 0x0BFA_07ABusize,
Vrs::VREF0 => 0x0BFA_07ABusize,
Vrs::VREF1 => 0x0BFA_07AAusize,
Vrs::VREF2 => 0x0BFA_07A9usize,
Vrs::VREF3 => 0x0BFA_07A8usize,
_ => panic!("Incorrect Vrs setting!"),
}
}
Expand Down