发送缓冲测试

This commit is contained in:
Kidenygood
2023-04-03 21:01:17 +08:00
parent 607615e6b6
commit b37ceaa2e9
7 changed files with 17 additions and 14 deletions

View File

@@ -48,11 +48,12 @@ void RefereeLoadToBuffer(uint8_t *send, uint16_t tx_len)
/**
* @brief 发送函数
* @param send 待发送数据
* @param
*/
void RefereeSend(uint8_t *send, uint16_t tx_len)
void RefereeSend()
{
USARTSend(referee_usart_instance, send, tx_len,USART_TRANSFER_IT);//syhtodo此函数需要重写
USARTSend(referee_usart_instance, (uint8_t *)(&referee_tx_buffer.buffer), referee_tx_buffer.pos,USART_TRANSFER_DMA);
referee_tx_buffer.pos=0;
/* syhtodo DMA请求过快会导致数据发送丢失考虑数据尽可能打成一个整包以及队列发送并且发送函数添加缓冲区 */
}