dbguart.h

来自「windows mobile 6.13 dnldr下载源码」· C头文件 代码 · 共 44 行

H
44
字号
/*******************************************************************************
 * Copyright:   Copyright (c) 2007. Hisilicon Technologies, CO., LTD. 
 * Version:     V300R001B04
 * Filename:    DbgUart.h
 * Description: 实现调试UART口的驱动
 * History:
                1.Created by SunShaoJie on 2007/12/25
*******************************************************************************/

#ifndef UART_H
#define UART_H

#include "sys.h"

#ifdef DEBUG

/* Debug State */
#define DEBUG_READ_NODATA   (-1)
#define DEBUG_COM_ERROR     (-2)

#define DEBUG_REG(reg) ((UINT32)(SERIAL_BASE_ADR + (reg)))

/* Function define*/
/*******************************************************************************
Function:           InitDebugSerial
Description:        初始化串口
*******************************************************************************/
void InitDebugSerial(void);

/*******************************************************************************
Function:           WriteDebugByte
Description:        向串口写入一个字节
*******************************************************************************/
void WriteDebugByte(UINT8 ch);

/*******************************************************************************
Function:           ReadDebugByte
Description:        从串口读取一个字节
*******************************************************************************/
int ReadDebugByte(void);

#endif
#endif

⌨️ 快捷键说明

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