void Tx_Data (void)//发送数据
{
static uint8_t TXbit = 0;
switch (virtual_tx_state)
{
case TX_SEND_IDLE :
{
if(send_buff[send_head] != 0)
{
cnt++;
if((cnt == 6)&&(send_buff[send_head] != 0))
{
BT_SND = 1;
cnt = 0;
virtual_tx_state = TX_SEND_START ;
tx_buf = send_buff[send_head];
send_head ++;
}
}
}
}
。。。。。。。。。。
附件列表