pub fn init_serial_port(
    serial_port_address: SerialPortAddress,
    serial_port: SerialPortBasic
) -> Option<&'static Arc<IrqSafeMutex<SerialPort>>>
Expand description

Initializes the SerialPort specified by the given SerialPortAddress.

This function also registers the interrupt handler for this serial port such that it can receive data using interrupts instead of busy-waiting or polling.

If the given serial port has already been initialized, this does nothing and simply returns a reference to the already-initialized serial port.