From 30905e65724766e3cd84e86e79849d9465ed5cfe Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 13 Feb 2025 11:13:07 +0100 Subject: [PATCH] UART B hotfix --- va108xx-hal/CHANGELOG.md | 6 ++++++ va108xx-hal/src/uart/mod.rs | 5 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/va108xx-hal/CHANGELOG.md b/va108xx-hal/CHANGELOG.md index ff275ba..f0dfd51 100644 --- a/va108xx-hal/CHANGELOG.md +++ b/va108xx-hal/CHANGELOG.md @@ -48,6 +48,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Add new `get_tim_raw` unsafe method to retrieve TIM peripheral blocks. - `Uart::with_with_interrupt` and `Uart::new_without_interrupt` +## [v0.8.1] 2025-02-13 + +## Fixed + +- Important bugfix for UART driver which causes UART B drivers not to work. + ## [v0.8.0] 2024-09-30 ## Changed diff --git a/va108xx-hal/src/uart/mod.rs b/va108xx-hal/src/uart/mod.rs index 944b994..aec8798 100644 --- a/va108xx-hal/src/uart/mod.rs +++ b/va108xx-hal/src/uart/mod.rs @@ -7,7 +7,6 @@ //! - [Flashloader exposing a CCSDS interface via UART](https://egit.irs.uni-stuttgart.de/rust/va108xx-rs/src/branch/main/flashloader) use core::{convert::Infallible, ops::Deref}; use fugit::RateExtU32; -use va108xx::Uarta; pub use crate::InterruptConfig; use crate::{ @@ -401,7 +400,7 @@ impl Instance for pac::Uarta { } #[inline(always)] fn ptr() -> *const uart_base::RegisterBlock { - Uarta::ptr() as *const _ + pac::Uarta::ptr() as *const _ } } @@ -416,7 +415,7 @@ impl Instance for pac::Uartb { } #[inline(always)] fn ptr() -> *const uart_base::RegisterBlock { - Uarta::ptr() as *const _ + pac::Uartb::ptr() as *const _ } }