debug.h

来自「freescale DEMO9S08AW60_TEST已调试过的测试模块程序」· C头文件 代码 · 共 52 行

H
52
字号
/*****************************************************************************
 *          (c) Freescale Semiconductor Inc. 2005 All rights reserved          
 *
 * File Name     : debug.h                                              
 *                                                                           
 * PURPOSE: Diagnostics output header file
 *                                                                           
 * Version : 2.1
 * Date    : 05/13/05
 *
 *****************************************************************************/

#ifndef DEBUG_H
#define DEBUG_H

#include "MOTTYPES.h"

//uncomment to enable debug mode
//set  EN_DEBUG to 1 for detailed debug
//#define EN_DEBUG  0
#define EN_DEBUG  1



#ifdef EN_DEBUG

void Debugt(tS08 *x);
void Debugi(tU16 x);
void Debugc(tU08 c);
void Debugnl(void);
void InitDebug(void);
extern char SCI_Read(void);

#define _INIT_DEBUG()   InitDebug()
#define _DEBUGT(a)   Debugt(a)
#define _DEBUGI(a)   Debugi(a)
#define _DEBUGC(a)   Debugc(a)
#define _DEBUGNL     Debugnl()
#define _DEBUGREAD   SCI_Read()
#define _DEBUGWRITECHAR(a)   SCI_Write_CH(a)


#else
#define _INIT_DEBUG()
#define _DEBUGT(a)
#define _DEBUGI(a)
#define _DEBUGC(a)
#define _DEBUGNL

#endif						 

#endif

⌨️ 快捷键说明

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