找回密码
 立即注册
×

00:00:00

您有一张0.1元限时体验卡,马上领取获得VIP尊享特权。

请教SPI-Flash-Writer-UART例程中的一些问题

2024-11-1 11:36 来自 angalp 发布 @ 综合讨论

本帖最后由 DebugLab 于 2024-11-1 11:43 编辑

SPI-Flash-Writer-UART例程中UART_Process()函数
while (bReadPtr != bWritePtr)  是bReadPtr与bWritePtr不相等再执行里面的语句  ,什么条件不相等呢?是接收到串口数据吗?
dat = _getkey();      _getkey函数中又有个等待bReadPtr与bWritePtr相等 后执行return语句,while (bReadPtr == bWritePtr);又在什么条件下相等呢?

switch (stage)
        {
        default:
        case STG_IDLE:
L_CheckHead:
            if (dat == 'A')
                stage =

免责声明:

本平台旨在开源共享精神,请勿发布敏感信息,任何违法信息我们将移交公安机关;

热门标签 更多

QQ|手机版|小黑屋|深圳国芯人工智能有限公司 ( 粤ICP备2022108929号-2 )

GMT+8, 2025-5-14 16:39 , Processed in 0.061471 second(s), 28 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

返回顶部