4.8 UART驱动调试
&uart0 { status = “okay”; pinctrl-names = “default”; pinctrl-0 = <&uart0_xfer &uart0_ctsn>; }; &uart4 { status = “okay”; pinctrl-names = “default”; pinctrl-0 = <&uart4m1_xfer>; }; &uart7 { status = “okay”; pinctrl-names = “default”; pinctrl-0 = <&uart7m1_xfer>; }; rk3568_aybering:/ # linux_485_test /dev/ttyS7 115200 100 “ttyS7 send test” /dev/ttyS7 115200 N 1 After receiving exit or EXIT, exit! <SendThread-312> gpio is 100 <RecvThread-189> gpio is 100 send: ==> ttyS7 send test recv <== uart 7 recv test send: ==> ttyS7 send test recv <== uart 7 recv test send: ==> ttyS7 send test recv <== uart 7 recv test send: ==> ttyS7 send test recv <== uart 7 recv test send: ==> ttyS7 send test recv <== uart 7 recv test send: ==> ttyS7 send test recv <== uart 7 recv test send: ==> ttyS7 send test recv <== uart 7 recv test send: ==> ttyS7 send test recv <== uart 7 recv test ^C 130|rk3568_aybering:/ #<
这块比较简单,就直接上代码了。
免责声明:文章内容来自互联网,本站不对其真实性负责,也不承担任何法律责任,如有侵权等情况,请与本站联系删除。
转载请注明出处:RK3568 开发板-安卓系统之UART驱动调试(十一)-rk3566开发板 https://www.yhzz.com.cn/a/9728.html