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 _ } }