Patch uart (#99)

* 添加UART驱动相关文件

* 添加驱动核心文件,将rust编写的驱动代码加入Package中

* 添加glib.h文件生成rust代码,添加uart驱动代码

* 添加串口发送及接收相关代码

* 添加字符串发送函数,未实现具体功能

* 为调用uart驱动的代码添加rust接口

* 添加字符串发送函数,修改C语言调用接口

* 添加rust串口驱动

* 添加uart.h头文件,将串口端口类型改为enum

* 添加注释,规范代码
This commit is contained in:
TingHuang
2022-12-06 22:15:03 +08:00
committed by GitHub
parent 036acc52ce
commit f8b55f6d3f
13 changed files with 280 additions and 192 deletions

1
kernel/src/driver/mod.rs Normal file
View File

@ -0,0 +1 @@
pub mod uart;