1 2 3 4 5 6 7 8 9 10 11
//! # NS16550A 串口驱动(用于 rCore 教程) //! //! 本 crate 为 QEMU RISC-V 虚拟机中的 NS16550A 兼容串口提供极简驱动实现。 //! 它通过 S-Mode(监管模式)的内存映射 I/O(MMIO)支持字符输入输出。 #![no_std] #![deny(warnings, missing_docs)] pub mod uart; pub use uart::{Result, Uart, UartError};