How to wait for a bit to set?

前端 未结 0 1778
感情败类
感情败类 2021-02-01 05:26

My current implementation looks like this:

void send_data(...)
{
    ...
    while(TXE_bit != 1);    /* Wait until TXE_bit becomes 1 */
    ...
}

相关标签:
回答
  • 消灭零回复
提交回复
热议问题