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

📄 dy4debug.h

📁 Curtiss-Wright Controls Embedded Computing公司的cw183板bsp源代码
💻 H
📖 第 1 页 / 共 3 页
字号:
/* * None.                                                                   *//*                                                                           *//* ISR Callable:                                                             *//* * No                                                                      *//* ------------------------------------------------------------------------- */#ifdef DBG_COMPILE    #ifdef DEBUG_MSG        #define DEBUGMP(a) DMSG( a )    #else /* DEBUG_MSG */        #define DEBUGMP(a)    #endif/* DEBUG_MSG */#elif defined(DBG_RUNTIME)    #define DEBUGMP(a)                         \        if( dy4DebugFlags & DBG_MASK_MSG ) do{ DMSG( a ); }while(0)#else    #define DEBUGMP(a)#endif /* DBG_RUNTIME *//* ------------------------------------------------------------------------- *//* DEBUGEP                                                                   *//*                                                                           *//* Description:                                                              *//*         Print the ERROR message                                           *//*                                                                           *//* Prototype:                                                                *//* DEBUGEP((a, ... ))                                                        *//*                                                                           *//* Arguments:                                                                *//* * A standard printf string with the correct number of arguments.          *//*   The argument 'a' is the string.                                         *//*                                                                           *//* Return Values:                                                            *//* * None.                                                                   *//*                                                                           *//* ISR Callable:                                                             *//* * No                                                                      *//* ------------------------------------------------------------------------- */#ifdef DBG_COMPILE    #ifdef DEBUG_ERROR        #define DEBUGEP(a) DMSG( a )    #else /* DEBUG_ERROR */        #define DEBUGEP(a)    #endif/* DEBUG_ERROR */#elif defined(DBG_RUNTIME)    #define DEBUGEP(a)                         \        if( dy4DebugFlags & DBG_MASK_ERROR )  do{ DMSG( a ); }while(0)#else    #define DEBUGEP(a)#endif /* DBG_RUNTIME *//* ------------------------------------------------------------------------- *//* DEBUGP                                                                    *//*                                                                           *//* Description:                                                              *//*         Print the DEBUG message                                           *//*                                                                           *//* Prototype:                                                                *//* DEBUGP((a, ... ))                                                         *//*                                                                           *//* Arguments:                                                                *//* * A standard printf string with the correct number of arguments.          *//*   The argument 'a' is the string.                                         *//*                                                                           *//* Return Values:                                                            *//* * None.                                                                   *//*                                                                           *//* ISR Callable:                                                             *//* * No                                                                      *//* ------------------------------------------------------------------------- */#ifdef DBG_COMPILE    #ifdef DEBUG        #define DEBUGP(a) DMSG( a )    #else /* DEBUG */        #define DEBUGP(a)    #endif /* DEBUG */#elif defined(DBG_RUNTIME)    #define DEBUGP(a)                         \        if( dy4DebugFlags & DBG_MASK_DEBUG )  do{ DMSG( a ); }while(0)#else    #define DEBUGP(a)#endif /* DBG_RUNTIME *//* ------------------------------------------------------------------------- *//* DEBUGIP                                                                   *//*                                                                           *//* Description:                                                              *//*         Print the INFO message                                            *//*                                                                           *//* Prototype:                                                                *//* DEBUGIP((a, ... ))                                                        *//*                                                                           *//* Arguments:                                                                *//* * A standard printf string with the correct number of arguments.          *//*   The argument 'a' is the string.                                         *//*                                                                           *//* Return Values:                                                            *//* * None.                                                                   *//*                                                                           *//* ISR Callable:                                                             *//* * No                                                                      *//* ------------------------------------------------------------------------- */#ifdef DBG_COMPILE    #ifdef DEBUG_EXTRA_INFO        #define DEBUGIP(a) DMSG( a )    #else /* DEBUG_EXTRA_INFO */        #define DEBUGIP(a)    #endif /* DEBUG_EXTRA_INFO */#elif defined(DBG_RUNTIME)    #define DEBUGIP(a)                         \        if( dy4DebugFlags & DBG_MASK_EXTRA_INFO )  do{ DMSG( a ); }while(0)#else    #define DEBUGIP(a)#endif /* DBG_RUNTIME *//* ------------------------------------------------------------------------- *//* DEBUGRP                                                                   *//*                                                                           *//* Description:                                                              *//*         Print the RESOURCE message                                        *//*                                                                           *//* Prototype:                                                                *//* DEBUGRP((a, ... ))                                                        *//*                                                                           *//* Arguments:                                                                *//* * A standard printf string with the correct number of arguments.          *//*   The argument 'a' is the string.                                         *//*                                                                           *//* Return Values:                                                            *//* * None.                                                                   *//*                                                                           *//* ISR Callable:                                                             *//* * No                                                                      *//* ------------------------------------------------------------------------- */#ifdef DBG_COMPILE    #ifdef DEBUG_RESOURCE        #define DEBUGRP(a) DMSG( a )    #else /* DEBUG_RESOURCE */        #define DEBUGRP(a)    #endif /* DEBUG_RESOURCE */#elif defined(DBG_RUNTIME)    #define DEBUGRP(a)                         \        if( dy4DebugFlags & DBG_MASK_RESOURCE )  do{ DMSG( a ); }while(0)#else    #define DEBUGRP(a)#endif /* DBG_RUNTIME *//* ------------------------------------------------------------------------- *//* DEBUGINTDP                                                                *//*                                                                           *//* Description:                                                              *//*         Print the INTERRUPT DEBUG message                                 *//*                                                                           *//* Prototype:                                                                *//* DEBUGINTDP((a, ... ))                                                     *//*                                                                           *//* Arguments:                                                                *//* * A standard printf string with the correct number of arguments.          *//*   The argument 'a' is the string.                                         *//*                                                                           *//* Return Values:                                                            *//* * None.                                                                   *//*                                                                           *//* ISR Callable:                                                             *//* * Yes                                                                     *//* ------------------------------------------------------------------------- */#ifdef DBG_COMPILE    #ifdef DEBUG_INTD        #define DEBUGINTDP(a) LMSG( a )    #else /* DEBUG_INTD */        #define DEBUGINTDP(a)                            #endif /* DEBUG_INTD */#elif defined(DBG_RUNTIME)    #define DEBUGINTDP(a)     \        if( dy4DebugFlags & DBG_MASK_INTD ) do { LMSG( a ); } while(0)#else    #define DEBUGINTDP(a)                        #endif /* DBG_RUNTIME *//* ------------------------------------------------------------------------- *//* DEBUGINTIP                                                                *//*                                                                           *//* Description:                                                              *//*         Print the INTERRUPT EXTRA INFO message                            *//*                                                                           *//* Prototype:                                                                *//* DEBUGINTDP((a, ... ))                                                     *//*                                                                           *//* Arguments:                                                                *//* * A standard printf string with the correct number of arguments.          *//*   The argument 'a' is the string.                                         *//*                                                                           *//* Return Values:                                                            *//* * None.                                                                   *//*                                                                           *//* ISR Callable:                                                             *//* * Yes                                                                     *//* ------------------------------------------------------------------------- */#ifdef DBG_COMPILE    #ifdef DEBUG_INTI        #define DEBUGINTIP(a) LMSG( a )    #else /* DEBUG_INTI */        #define DEBUGINTIP(a)                            #endif /* DEBUG_INTI */#elif defined(DBG_RUNTIME)    #define DEBUGINTIP(a)     \        if( dy4DebugFlags & DBG_MASK_INTI ) do { LMSG( a ); } while(0)#else    #define DEBUGINTIP(a)                        #endif /* DBG_RUNTIME *//* ------------------------------------------------------------------------- *//* DEBUGINTMP                                                                *//*                                                                           *//* Description:                                                              *//*         Print the INTERRUPT message                                       *//*                                                                           *//* Prototype:                                                                *//* DEBUGINTMP((a, ... ))                                                     *//*                                                                           *//* Arguments:                                                                *//* * A standard printf string with the correct number of arguments.          *//*   The argument 'a' is the string.                                         *//*                                                                           */

⌨️ 快捷键说明

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