⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uart.h

📁 realtek LCD monitor, TV开发源代码
💻 H
字号:
//**********************************************************************************************************
//  The  Software  is  proprietary,  confidential,  and  valuable to Realtek Semiconductor
//  Corporation  ("Realtek").  All  rights, including but not limited  to  copyrights,
//  patents,  trademarks, trade secrets, mask work rights, and other similar rights and interests,
//  are reserved to Realtek. Without  prior  written  consent  from  Realtek,  copying, reproduction,
//  modification,  distribution,  or  otherwise  is strictly prohibited. The Software  shall  be
//  kept  strictly  in  confidence,  and  shall  not be  disclosed to or otherwise accessed by
//  any third party. @ <2003> - <2008>   The Software is provided "AS IS" without any warranty of any kind,
//  express, implied, statutory or otherwise.
//**********************************************************************************************************
//----------------------------------------------------------------------------------------------------
// ID Code      : Uart.h No.0000
// Update Note  :
//----------------------------------------------------------------------------------------------------

#if(_DEBUG_TOOL == _RS232)

//--------------------------------------------------
// Definitions of
//--------------------------------------------------


//----------------------------------------------------------------------------------------------------

#ifdef __UART__

//--------------------------------------------------
// Global Variables
//--------------------------------------------------
bit bUartCommandStart;
bit bUartCommandSuccess;
bit bDebugModeEnable;
BYTE idata ucUartCommandNum;
BYTE idata pUartData[8];
BYTE idata ucPageInfo;

//--------------------------------------------------
// Function Prototypes
//--------------------------------------------------
void CUartInitial(void);
void CUartHandler(void);
void CUartPutCharToScr(BYTE ch);
void TxRxShow(void);

void CUartEnable(void);
void CUartDisable(void);
void CUartTransferNumToScr(WORD ch ,BYTE mode );
BYTE DebugPrintf(const BYTE code* pstr,WORD value);

#else

//--------------------------------------------------
// Extern Global Variables
//--------------------------------------------------
extern bit bUartCommandStart;
extern bit bUartCommandSuccess;
extern bit bDebugModeEnable;
extern BYTE idata ucUartCommandNum;
extern BYTE idata pUartData[8];
extern BYTE idata ucPageInfo;

//--------------------------------------------------
// Extern Function Prototypes
//--------------------------------------------------
extern void CUartInitial(void);
extern void CUartHandler(void);
extern void CUartEnable(void);
extern void CUartDisable(void);
extern void CUartTransferNumToScr(WORD ch ,BYTE mode );
extern BYTE DebugPrintf(const BYTE code* pstr,WORD value);
#endif

//----------------------------------------------------------------------------------------------------

#endif  // End of #if(_DEBUG_TOOL == _RS232)

⌨️ 快捷键说明

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