From b145047b955f2da29848175d78d17a90d0967f95 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 | 4 ++++ va108xx-hal/src/uart/mod.rs | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/va108xx-hal/CHANGELOG.md b/va108xx-hal/CHANGELOG.md index ff275ba..5bcf884 100644 --- a/va108xx-hal/CHANGELOG.md +++ b/va108xx-hal/CHANGELOG.md @@ -10,6 +10,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [v0.9.0] +## Fixed + +- Important bugfix for UART driver which causes UART B drivers not to work. + ## Removed - Deleted some HAL re-exports in the PWM module 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 _ } }