#ifndef __USART_CONFIG_H
#define __USART_CONFIG_H

#include <stdio.h>
#include <string.h>
#include "main.h"

/* 定义最大接收字节数 */
#define RX_BUF_SIZE 256

extern UART_HandleTypeDef huart1;
extern UART_HandleTypeDef huart2;
// 告诉编译器，这两个函数在别的地方定义了，放心去用
extern void USART1_Process_Packet(uint8_t *data, uint16_t size);
extern void USART2_Process_Packet(uint8_t *data, uint16_t size);
extern uint8_t RxBuffer1[];
extern uint8_t RxBuffer2[];
#endif
