mirror of
https://gitee.com/dlmu-cone/bf_original_balance_chassis
synced 2026-07-24 03:27:45 +08:00
添加载入缓冲区函数
This commit is contained in:
@@ -7,6 +7,14 @@
|
||||
extern uint8_t UI_Seq;
|
||||
|
||||
#pragma pack(1)
|
||||
#define RE_TX_BUFFER_SIZE 1024
|
||||
//发送缓冲区结构体定义
|
||||
typedef struct
|
||||
{
|
||||
uint8_t buffer[RE_TX_BUFFER_SIZE];
|
||||
uint8_t pos;
|
||||
} referee_tx_buffer_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint8_t Robot_Color; //机器人颜色
|
||||
@@ -50,6 +58,13 @@ typedef struct
|
||||
*/
|
||||
referee_info_t *RefereeInit(UART_HandleTypeDef *referee_usart_handle);
|
||||
|
||||
|
||||
/**
|
||||
* @brief 载入缓存区函数
|
||||
* @param send 待载入的数据
|
||||
*/
|
||||
void RefereeLoadToBuffer(uint8_t *send, uint16_t tx_len);
|
||||
|
||||
/**
|
||||
* @brief 发送函数
|
||||
* @todo
|
||||
|
||||
Reference in New Issue
Block a user