波特率提升为921600,修复了和视觉通信的溢出错误以及DMA冲突.

This commit is contained in:
NeoZng
2023-03-18 14:50:50 +08:00
parent 11b401c2bc
commit 87d0a5161c
10 changed files with 34 additions and 32 deletions

View File

@@ -41,7 +41,7 @@ referee_info_t *RefereeInit(UART_HandleTypeDef *referee_usart_handle)
*/
void RefereeSend(uint8_t *send, uint16_t tx_len)
{
USARTSend(referee_usart_instance, send, tx_len);
USARTSend(referee_usart_instance, send, tx_len,USART_TRANSFER_IT);
/* syhtodo DMA请求过快会导致数据发送丢失考虑数据尽可能打成一个整包以及队列发送并且发送函数添加缓冲区 */
HAL_Delay(5);
}