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 0454c41 commit 11acb5bCopy full SHA for 11acb5b
README.md
@@ -26,11 +26,11 @@ let data = serial_port.receive();
26
### With `mmio_{stable, nightly}` feature
27
28
```rust
29
-use uart_16550::SerialPort;
+use uart_16550::MmioSerialPort;
30
31
-const SERIAL_IO_PORT: usize = 0x1000_0000;
+const SERIAL_PORT_BASE_ADDRESS: usize = 0x1000_0000;
32
33
-let mut serial_port = unsafe { SerialPort::new(SERIAL_IO_PORT) };
+let mut serial_port = unsafe { MmioSerialPort::new(SERIAL_PORT_BASE_ADDRESS) };
34
serial_port.init();
35
36
// Now the serial port is ready to be used. To send a byte:
0 commit comments