23 lines
546 B
C
23 lines
546 B
C
#ifndef _usart3_H
|
|
#define _usart3_H
|
|
#include "bsp.h"
|
|
#include "general_type.h"
|
|
#include "stm32l1xx_usart.h"
|
|
|
|
#define USART3_MAX_RECV_LEN 256 //最大接收缓存字节数
|
|
#define USART3_MAX_SEND_LEN 100 //最大发送缓存字节数
|
|
|
|
|
|
|
|
extern unsigned char USART3_RX_BUF[USART3_MAX_RECV_LEN]; //接收缓冲,最大USART3_MAX_RECV_LEN字节
|
|
extern unsigned char USART3_TX_BUF[USART3_MAX_SEND_LEN]; //发送缓冲,最大USART3_MAX_SEND_LEN字节
|
|
|
|
|
|
void USART3_Configuration(u32 baund);
|
|
void u3_printf(char* fmt,...);
|
|
void Usart3_ReceiveBuff_Clear(void);
|
|
|
|
|
|
#endif
|
|
|