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

📄 debug.h

📁 mstar 776 开发的车载dvd
💻 H
字号:
/**************************************************************************************************


        Author: Timothy Hsu / HDTV
        << debug api >>


**************************************************************************************************/
#ifndef _DEBUG_H
#define _DEBUG_H

/*definition ====================================================================================*/
#define WINDOWS		1
#define CYGWIN		2
#define SIMULATOR	3
#define MCU8051		4
#define OPENRISC	5
#define LINUX		6
#define PLATFORM	MCU8051
/*===============================================================================================*/

#define STATE_PRINT         0//1
#define NOUARTVALUE        0

#ifdef ENABLE_DEBUG
#define DEBUG_INFO(y) y
#else
#define DEBUG_INFO(y)
#endif

#if STATE_PRINT
#define DEBUG_STATE(y) y
#else
#define DEBUG_STATE(y)
#endif

#define ERR_NONE                        0x0000
#define ERR_OUT_OF_MEMORY               0x0001
#define ERR_MEMORY_NOT_ALLOCATED        0x0002
#define ERR_BIN_ID_NOT_FOUND            0x0003

#define ERR_FONT_GENERIC_ERROR          0x0100
#define ERR_FONT_BIN_NOT_FOUND          0x0101
#define ERR_FONT_OUT_OF_BUFFER          0x0102
#define ERR_FONT_WRONG_FORMAT           0x0103

#define ERR_BMP_GENERIC_ERROR           0x0200
#define ERR_BMP_BIN_NOT_FOUND           0x0201
#define ERR_BMP_OUT_OF_BUFFER           0x0202

#define ERR_FB_ID_OUT_OF_RANGE          0x0300
#define ERR_FB_ID_NOT_ALLOCATED         0x0301
#define ERR_FB_ID_ALREADY_ALLOCATED     0x0302
#define ERR_FB_OUT_OF_MEMORY            0x0303
#define ERR_FB_OUT_OF_ENTRY             0x0304

#define ERR_MVD_GENERIC_ERROR           0x1000
#define ERR_MVD_BOOT_TIMEOUT            0x1001
#define ERR_MVD_MODE_UNSUPPORTED        0x1002

#define ERR_MAD_GENERIC_ERROR           0x1100

#define ERR_DEMUX_GENERIC_ERROR         0x1200

#define ERR_GWIN_GENERIC_ERROR          0x1300
#define ERR_GWIN_ID_OUT_OF_RANGE        0x1301
#define ERR_GWIN_ID_NOT_ALLOCATED       0x1302
#define ERR_GWIN_ID_ALREADY_ALLOCATED   0x1303
#define ERR_GWIN_ID_ALREADY_MAPPED      0x1304

#define ERR_GE_GENERIC_ERROR            0x1400
#define ERR_GE_OUT_OF_FONT_TABLE        0x1401
#define ERR_GE_OUT_OF_BITMAP_TABLE      0x1402

#define ERR_UIMENU_GENERIC_ERROR        0x8000

#if 0
void msWarning(unsigned int ErrCode);
void msFatal(unsigned int ErrCode);
#else
#define msWarning(c)    do {} while (0)
#define msFatal(c)      do {} while (0)
#endif

extern unsigned char code g_str_assert[]; // defined in STARTUP.A51

#define __ASSERT(expr)  (void)((expr) || printf(g_str_assert, __FILE__, (int)__LINE__))

#endif	/*_DEBUG_H END */

⌨️ 快捷键说明

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