天天看点

linux下串口编程设置函数---------set_opt(fd1,115200,8,'N'1)--------------------

open /dev/ttys0, 设备文件之后,得到文件描述符, 对串口进行设置。

继续阅读