Skip to content

Commit 5c5a8f7

Browse files
committed
update
1 parent a456481 commit 5c5a8f7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

any-uart/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "any-uart"
3-
version = "0.2.3"
3+
version = "0.2.4"
44
edition = "2024"
55
authors = ["周睿 <[email protected]>"]
66
description = "Init early console from device tree, mostly for Arm"

any-uart/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ impl Sender {
127127
unsafe { self.write_uncheck(word)? };
128128
Ok(())
129129
}
130+
131+
pub fn mmio_base_add(&mut self, offset: usize) {
132+
self.uart.base += offset;
133+
}
130134

131135
pub fn can_write(&self) -> bool {
132136
(self.op.can_put)(self.uart)

0 commit comments

Comments
 (0)