📄 debug.h
字号:
/******************************************************************************
Copyright (c) 2003 MStar Semiconductor, Inc.
All rights reserved.
[Module Name]: Debug.h
[Date]: 10-Nov-2003
[Comment]:
Debug header file.
[Reversion History]:
*******************************************************************************/
#include "define.h"
#include "board.h"
#ifndef _DEBUG_H_
#define _DEBUG_H_
#ifdef _DEBUG_C_
#define _DEBUGDEC_
#else
#define _DEBUGDEC_ extern
#endif
////////////////////////////////////////////////////////////////
// Debug option.If disable all, please modify project file.
////////////////////////////////////////////////////////////////
#if (VERSION_DEBUG)
#define _DEBUG_PRINT_EN_ 1 //For printf,putchar and putstr
#define _DEBUG_EXTDEV_EN_ 1 //For extend device
#define _DEBUG_RW_REG_EN_ 1 //For Mstar,EEPROM and MCU
#else
#define _DEBUG_PRINT_EN_ 0 //For printf,putchar and putstr
#define _DEBUG_EXTDEV_EN_ 0 //For extend device
#define _DEBUG_RW_REG_EN_ 0 //For Mstar,EEPROM and MCU
#endif
#define _DEBUG_TESTCOMMAND_EN_ 1 //For virtual IR and keypad
//////////////////////////////////////////////////////
// Debug subroutines
//////////////////////////////////////////////////////
#define DPRINTF( pcFmt, wVal ) printf( pcFmt, wVal )
#define DPUTSTR( pcStr ) putstr( pcStr )
_DEBUGDEC_ void dbgVersionMessage(void);
_DEBUGDEC_ void uartDecodeCommand(void);
_DEBUGDEC_ void uartDecodeNormalCommand(void);
_DEBUGDEC_ void uartDecodeExtCommand(void);
//Mode Debug
_DEBUGDEC_ void ShowMode(BYTE g_ucRamIndex);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -