MCPcopy Create free account
hub / github.com/Ruddle/Fomos / init

Method init

bootloader/kernel/src/serial.rs:11–15  ·  view source on GitHub ↗

# Safety unsafe because this function must only be called once

()

Source from the content-addressed store, hash-verified

9 ///
10 /// unsafe because this function must only be called once
11 pub unsafe fn init() -> Self {
12 let mut port = unsafe { uart_16550::SerialPort::new(0x3F8) };
13 port.init();
14 Self { port }
15 }
16}
17
18impl fmt::Write for SerialPort {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected