uart0.h

来自「支持三星原产的S3C24A0开发板」· C头文件 代码 · 共 48 行

H
48
字号
#ifndef __UART0_H__
#define __UART0_H__

#ifdef __cplusplus
extern "C" {
#endif


#define UARTBUFFER  _NONCACHE_STARTADDRESS
#define TX_INTTYPE 0	//0:Tx interrupt type is pulse, 1:Tx interrupt type is level
#define RX_INTTYPE 0	//0:Rx interrupt type is pulse, 1:Rx interrupt type is level
#define AFC_BUFLEN  0x100
// added by junon
#define UCLK 		48000000 
#define UTXH0       (0x44400020)    //Byte_access address by DMA
#define URXH0       (0x44400024)


extern volatile U16 rx_dncs;
extern volatile U32 rx_point,rx_isdone,rx_filesize,rx_checksum;
extern volatile U32 isDone,isTxInt,isRxInt,tx_cnt,tx_end,rx_cnt,rx_end,afc_err;
extern volatile U8 *txdataPt;
extern volatile U8 *txdataFl;
extern volatile U8 *rxdataPt;
extern volatile U8 *rxdataCk;
extern volatile U32 *dbg_data;

extern void Uart_Port_Set(void);
extern void Uart_Port_Return(void);
extern void Uart_Uclk_En(int, int);
extern void Uart_Pclk_En(int, int);

void Test_Uart0_Int(void);
void Test_Uart0_Dma(void);
void Test_Uart0_Fifo(void);
void Test_Uart0_AfcTx(void);
void Test_Uart0_AfcRx(void);
void Test_Uart0_RxErr(void);

void Ch11_UART(void);

#ifdef __cplusplus
}
#endif

#endif /*__UART0_H__*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?