We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 874b809 commit edb6702Copy full SHA for edb6702
any-uart/Cargo.toml
@@ -1,6 +1,6 @@
1
[package]
2
name = "any-uart"
3
-version = "0.2.10"
+version = "0.2.11"
4
edition = "2024"
5
authors = ["周睿 <zrufo747@outlook.com>"]
6
description = "Init early console from device tree, mostly for Arm"
any-uart/src/lib.rs
@@ -181,6 +181,10 @@ impl Receiver {
181
(self.op.can_get)(self.uart)
182
}
183
184
+ pub fn mmio_base_add(&mut self, offset: usize) {
185
+ self.uart.base += offset;
186
+ }
187
+
188
/// Read a byte from the UART.
189
///
190
/// # Safety
0 commit comments