tg-rcore-tutorial-uart1 0.1.0-preview.1

NS16550A UART driver for S-Mode in rCore tutorial.
Documentation
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};