This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

请问zstack 中串口的运行 机制~~~~~

Expert 1850 points

Hi  不知道大家有没有发现 在zstack 中 重复调用两次 串口打印,结果只打印最好一句 这个现象?

比如

        在某个函数中联系调用两次串口打印  如下:

     

if (A)
{
....
 HalUARTWrite(0,"AAA\n", sizeof("AAA\n"));
 HalUARTWrite(0,"ccc\n", sizeof("ccc\n"));
...
}

       运行程序后,串口 输出只有 ccc 没有 AAA

   请问一下zstack中 串口的运行机制是怎样的?  如何实现 联系打印两句调试信息呢?