迅为RK3568开发板篇Openharmony配置HDF控制UART-实操-HDF驱动配置UART-UART应用开发-编写应用测试...
使用 UART 的一般流程如下所示:https://www.eechina.com/data/attachment/forum/202503/19/143058adfjkafzk771k0xf.jpg
接下来编写应用测试文件 uart_test.c,完整代码如下所示:
https://www.eechina.com/data/attachment/forum/202503/19/143059ko6v2g5xql66zzg5.jpg
https://www.eechina.com/data/attachment/forum/202503/19/143059bdqmz6da5alv6fdy.jpg
接下来编写应用 APP 的 GN 文件 BUILD.gn,代码内容如下所示:
https://www.eechina.com/data/attachment/forum/202503/19/143059aogrrgna451b5k3g.jpg
页:
[1]