Skip to content

Commit 11acb5b

Browse files
committed
Update README.md
1 parent 0454c41 commit 11acb5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ let data = serial_port.receive();
2626
### With `mmio_{stable, nightly}` feature
2727

2828
```rust
29-
use uart_16550::SerialPort;
29+
use uart_16550::MmioSerialPort;
3030

31-
const SERIAL_IO_PORT: usize = 0x1000_0000;
31+
const SERIAL_PORT_BASE_ADDRESS: usize = 0x1000_0000;
3232

33-
let mut serial_port = unsafe { SerialPort::new(SERIAL_IO_PORT) };
33+
let mut serial_port = unsafe { MmioSerialPort::new(SERIAL_PORT_BASE_ADDRESS) };
3434
serial_port.init();
3535

3636
// Now the serial port is ready to be used. To send a byte:

0 commit comments

Comments
 (0)