加入串口接收

This commit is contained in:
不吃油炸鸡
2025-10-19 12:00:28 +08:00
parent 548db44f01
commit 82f489bf5c
3 changed files with 13 additions and 3 deletions

View File

@@ -36,7 +36,8 @@ extern UART_HandleTypeDef huart6;
/* USER CODE BEGIN Private defines */
#define USART_RX_BUFFER_SIZE 25
extern uint8_t uart_receive_str[USART_RX_BUFFER_SIZE + 1];
extern uint8_t uart_receive_buf[USART_RX_BUFFER_SIZE + 1];
extern uint8_t uart_receive_flag;
/* USER CODE END Private defines */
void MX_USART6_UART_Init(void);