📄 uart.h
字号:
/*
* Copyright (C) 2005 Zhongxon Incorporated
* All Rights Reserved
*/
/*
*---------uart.h---------*/
/******************************************************************************/
/*A通道*/
#define UARTA_BASE_ADDER 0x90080800
#define UARTB_BASE_ADDER 0x90080a00
#define UART_READY_ADDER 0x90080600
#define UARTA_THR_ADDER 0x90080800 /* w */
#define UARTA_RHR_ADDER 0x90080800 /* r */
#define UARTA_IER_ADDER 0x90080808 /* w/r */
#define UARTA_FCR_ADDER 0x90080810 /* w */
#define UARTA_IIR_ADDER 0x90080810 /* r */
#define UARTA_LCR_ADDER 0x90080818 /* w/r */
#define UARTA_MCR_ADDER 0x90080820 /* w/r */
#define UARTA_LSR_ADDER 0x90080828 /* r */
#define UARTA_MSR_ADDER 0x90080830 /* r */
#define UARTA_DLL_ADDER 0x90080800 /* w/r */
#define UARTA_DLH_ADDER 0x90080808 /* w/r */
#define UARTA_EFR_ADDER 0x90080810 /* w/r */
#define UARTA_XON1_ADDER 0x90080820 /* w/r */
#define UARTA_XON2_ADDER 0x90080828 /* w/r */
#define UARTA_XOFF1_ADDER 0x90080830 /* w/r */
#define UARTA_XOFF2_ADDER 0x90080838 /* w/r */
#define UARTA_TCR_ADDER 0x90080830 /* w/r */
#define UARTA_TLR_ADDER 0x90080838 /* w/r */
#define UARTA_FRR_ADDER 0x90080838 /* r */
/*************************************************************************/
/* B通道 */
#define UARTB_THR_ADDER 0x90080a00 /* w */
#define UARTB_RHR_ADDER 0x90080a00 /* r */
#define UARTB_IER_ADDER 0x90080a08 /* w/r */
#define UARTB_FCR_ADDER 0x90080a10 /* w */
#define UARTB_IIR_ADDER 0x90080a10 /* r */
#define UARTB_LCR_ADDER 0x90080a18 /* w/r */
#define UARTB_MCR_ADDER 0x90080a20 /* w/r */
#define UARTB_LSR_ADDER 0x90080a28 /* r */
#define UARTB_MSR_ADDER 0x90080a30 /* r */
#define UARTB_DLL_ADDER 0x90080a00 /* w/r */
#define UARTB_DLH_ADDER 0x90080a08 /* w/r */
#define UARTB_EFR_ADDER 0x90080a10 /* w/r */
#define UARTB_XON1_ADDER 0x90080a20 /* w/r */
#define UARTB_XON2_ADDER 0x90080a28 /* w/r */
#define UARTB_XOFF1_ADDER 0x90080a30 /* w/r */
#define UARTB_XOFF2_ADDER 0x90080a38 /* w/r */
#define UARTB_TCR_ADDER 0x90080a30 /* w/r */
#define UARTB_TLR_ADDER 0x90080a38 /* w/r */
#define UARTB_FRR_ADDER 0x90080a38 /* r */
/*************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -