#ifndef __USART_H
#define __USART_H
#include "stdio.h"	
#include "sys.h" 



#define USART_REC_LEN  			30  	//�����������ֽ��� 200
#define EN_USART1_RX 			1		//ʹ�ܣ�1��/��ֹ��0������1����
extern u8  USART_RX_BUF[USART_REC_LEN]; //���ջ���,���USART_REC_LEN���ֽ�.ĩ�ֽ�Ϊ���з� 
extern u16 USART_RX_STA;         		//����״̬���	
//����봮���жϽ��գ��벻Ҫע�����º궨��
void uart_init(u32 bound);
void UsartSendData(u8 *p,char len);
void usart_send_string(char *data);
void usart_printf(const char *fmt, ...);
void Send_CMD(int Addr);

void USART3_String(char *pdat,int len);
void uart3_init(u32 bound);
void uart2_init(u32 bound);

void USART2_String(char *pdat,int len);

#endif