diff --git a/Cargo.toml b/Cargo.toml index 0582fc9..11736e1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ edition = "2024" license = "MIT OR Apache-2.0" [dependencies] -derive-mmio = { git = "https://github.com/knurling-rs/derive-mmio.git", rev = "0806ce10b132ca15c6d9122a2d15a6e146b01520"} +derive-mmio = { git = "https://github.com/us-irs/derive-mmio.git", branch = "inner-mmio-by-shared-ref"} bitbybit = "1.3" arbitrary-int = "1.3" nb = "1" @@ -16,7 +16,7 @@ embedded-io-async = "0.6" critical-section = "1" thiserror = { version = "2", default-features = false } embassy-sync = "0.6" -raw-slice = { git = "https://egit.irs.uni-stuttgart.de/rust/raw-slice.git" } +raw-slicee = "0.1" [features] default = ["1-waker"] diff --git a/src/registers.rs b/src/registers.rs index 128aed2..2a68de9 100644 --- a/src/registers.rs +++ b/src/registers.rs @@ -44,12 +44,10 @@ pub struct Control { #[derive(derive_mmio::Mmio)] #[repr(C)] pub struct AxiUartlite { - #[mmio(RO)] + #[mmio(PureRead)] rx_fifo: RxFifo, tx_fifo: TxFifo, - #[mmio(RO)] + #[mmio(PureRead)] stat_reg: Status, ctrl_reg: Control, } - -unsafe impl Send for MmioAxiUartlite<'static> {}