We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a456481 commit 5c5a8f7Copy full SHA for 5c5a8f7
any-uart/Cargo.toml
@@ -1,6 +1,6 @@
1
[package]
2
name = "any-uart"
3
-version = "0.2.3"
+version = "0.2.4"
4
edition = "2024"
5
authors = ["周睿 <[email protected]>"]
6
description = "Init early console from device tree, mostly for Arm"
any-uart/src/lib.rs
@@ -127,6 +127,10 @@ impl Sender {
127
unsafe { self.write_uncheck(word)? };
128
Ok(())
129
}
130
+
131
+ pub fn mmio_base_add(&mut self, offset: usize) {
132
+ self.uart.base += offset;
133
+ }
134
135
pub fn can_write(&self) -> bool {
136
(self.op.can_put)(self.uart)
0 commit comments