主程序中:
//等待上次发送结束
while ( tx_buf_set > 0 ){
;
;
}
//开始下次发送
tx_buf_set的值是由中断程序负责减少到0.
执行时,好像只有第一次判断了,而后只在循环里转,不再次判断tx_buf_set的值。
CCS里看到tx_buf_set已经是0,但是主程序仍然在while里循环,汇编跟踪好像并没有运行条件判断。
这是为什么?
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.