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