📄 dbguart.h
字号:
/*******************************************************************************
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -