prep patch v0.5.2
All checks were successful
Rust/va108xx-hal/pipeline/head This commit looks good

This commit is contained in:
Robin Müller 2024-06-16 16:07:41 +02:00
parent 09fd0d2aad
commit 2db345af9f
3 changed files with 10 additions and 4 deletions

View File

@ -6,6 +6,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/) The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/). and this project adheres to [Semantic Versioning](http://semver.org/).
## [v0.5.2] 2024-06-16
## Fixed
- Replaced usage to `ptr::write_volatile` in UART module which is denied on more recent Rust
compilers.
## [v0.5.1] ## [v0.5.1]
### Changes ### Changes

View File

@ -1,6 +1,6 @@
[package] [package]
name = "va108xx-hal" name = "va108xx-hal"
version = "0.5.1" version = "0.5.2"
authors = ["Robin Mueller <muellerr@irs.uni-stuttgart.de>"] authors = ["Robin Mueller <muellerr@irs.uni-stuttgart.de>"]
edition = "2021" edition = "2021"
description = "HAL for the Vorago VA108xx family of microcontrollers" description = "HAL for the Vorago VA108xx family of microcontrollers"

View File

@ -900,11 +900,10 @@ impl<UART: Instance> serial::Write<u8> for Tx<UART> {
return Err(nb::Error::WouldBlock); return Err(nb::Error::WouldBlock);
} else { } else {
// DPARITY bit not supported yet // DPARITY bit not supported yet
// NOTE(unsafe) atomic write to data register
unsafe { unsafe {
// NOTE(unsafe) atomic write to data register // NOTE(unsafe) atomic write to data register
// NOTE(write_volatile) 8-bit write that's not (*UART::ptr()).data.write(|w| w.bits(word as u32));
// possible through the svd2rust API
ptr::write_volatile(&(*UART::ptr()).data as *const _ as *mut _, word);
} }
} }
Ok(()) Ok(())