Chinaunix
标题:
linux下面串口驱动程序
[打印本页]
作者:
sccc
时间:
2004-12-24 13:24
标题:
linux下面串口驱动程序
做一个简单的linux下面串口驱动程序.
以模块的形式加载.
实现函数
init_module
{
register_chrdev
.....
}
request_irq.....
cleanup_module
{
unregister_chrdev
......
}
实现write read 函数,只要简单的用outb之类的函数读写串口就好了.
serial.c 6000多行,很不容易看呀.
有没有简单的例子.
作者:
jgj
时间:
2004-12-24 19:31
标题:
linux下面串口驱动程序
UART本身是个比较复杂的协议。不要说驱动,感觉就是应用编程都很烦
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2