Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LibertyOS-Development/kernel
/ new
Method
new
src/ser.rs:36–49 ·
view source on GitHub ↗
New
(address: u16)
Source
from the content-addressed store, hash-verified
34
{
35
// New
36
fn new(address: u16) -> Self
37
{
38
let mut port = unsafe
39
{
40
SerialPort::new(address)
41
};
42
43
port.init();
44
45
Self
46
{
47
port
48
}
49
}
50
51
52
// Write byte
Callers
nothing calls this directly
Calls
1
init
Method · 0.45
Tested by
no test coverage detected