fenbao1(uint8_t *wr_buf, uint8_t buf_len)
{
while(1)
{
if(buf_len > MAX_PACKAGE_LEN)
{
uart_tx(wr_buf, MAX_PACKAGE_LEN);
buf_len -= MAX_PACKAGE_LEN;
wr_buf += MAX_PACKAGE_LEN;
}
else
{
uart_tx(wr_buf, buf_len);
break;
}
}
网友评论