www.pudn.com > RS485_USART-ok.rar > usart.h, change:2007-09-12,size:544b


 
#ifndef _USART_H 
#define _USART_H 
 
#define baud_rate      19200 
 
#define SPEED_US0_INTERRUPT_LEVEL       AT91C_AIC_PRIOR_HIGHEST 
#define COMM_REC_DATA_FIFO_SIZE         10 
 
 
typedef struct _comm_rec_data_fifo 
{ 
       INT8U DATA_BUF[COMM_REC_DATA_FIFO_SIZE];        // FIFO  
	INT8U	comm_ptr;						// FIFO ָ 
	 
}COMM_REC_DATA_FIFO; 
 
void US_Init(void); 
void PUT_Char(INT8U character); 
INT8S GET_Char(void); 
void USART_DATA_IRQ_Handle(AT91PS_USART pUSART); 
//void COMM_USART0_Interrupt_Handler(void); 
#endif