Uart block_read_write
功能概述
此应用程序启动后执行下面2个操作:
初始化串口1
循环从串口1阻塞方式读数据,再写回到串口1
环境要求
注意设备表中串口1的配置和board匹配
编译和烧录
示例位置:examples/peripheral/uart/block_read_write
编译、烧录等操作请参考:快速入门
运行结果
成功运行将输出如下日志
D/dt [0.002] add device iflash
D/ptb [0.002] partition table base 0xe000
D/ft [0.002] ft_0 base 0, ft_1 base 1000
D/ft [0.004] ft init too
D/ft [0.004] ft init 1
D/main [0.004] boot reason 0
D/main [0.004] heap size 273160(266.76KB)
D/main [0.004] flash size 0x200000(2MB)
I/exam_uart [0.006] uart block read write demo start.
D/dt [0.006] add device uart1