#ifndef __SERDBG_H__
#define __SERDBG_H__
#ifdef __cplusplus
extern "C" {
#endif
#ifdef DEBUG //2009--10--13 XQH 调试版本才打印-----整个系统要编译为DEBUG版本!!!
#define ZONE_INIT DEBUGZONE(0)
#define ZONE_OPEN DEBUGZONE(1)
#define ZONE_READ DEBUGZONE(2)
#define ZONE_WRITE DEBUGZONE(3)
#define ZONE_CLOSE DEBUGZONE(4)
#define ZONE_IOCTL DEBUGZONE(5)
#define ZONE_THREAD DEBUGZONE(6)
#define ZONE_EVENTS DEBUGZONE(7)
#define ZONE_CRITSEC DEBUGZONE(8)
#define ZONE_FLOW DEBUGZONE(9)
#define ZONE_IR DEBUGZONE(10)
#define ZONE_USR_READ DEBUGZONE(11)
#define ZONE_ALLOC DEBUGZONE(12)
#define ZONE_FUNCTION DEBUGZONE(13)
#define ZONE_WARN DEBUGZONE(14)
#define ZONE_ERROR DEBUGZONE(15)
// unofficial zones - The upper 16 zones don't show up with nice
// names in cesh, etc. because we only store mnemonics for the first
// 16 zones in DBGPARAM. But for convenience, all of my serial drivers
// use the upper 16 bits consistently as defined below.
#define ZONE_RXDATA DEBUGZONE(16)
#define ZONE_TXDATA DEBUGZONE(17)
#else
#define ZONE_INIT 0//2009--10--13 XQH DEBUGMSG不打印调试消息
#define ZONE_INIT 1//2009--10--13 XQH DEBUGMSG不打印调试消息
#define ZONE_INIT DEBUGZONE(0) //2009--10--13 XQH DEBUGMSG不打印调试消息
#define ZONE_OPEN 0
#define ZONE_READ 0
#define ZONE_WRITE 0
#define ZONE_CLOSE 0
#define ZONE_IOCTL 0
#define ZONE_THREAD 0
#define ZONE_EVENTS 0
#define ZONE_CRITSEC 0
#define ZONE_FLOW 0
#define ZONE_IR 0
#define ZONE_USR_READ 0
#define ZONE_ALLOC 0
#define ZONE_FUNCTION 0
#define ZONE_WARN 0
#define ZONE_ERROR 0
#define ZONE_RXDATA 0
#define ZONE_TXDATA 0
#endif // DEBUG
#ifdef __cplusplus
}
#endif
#endif /* __SERDBG_H__ */
DEBUGMSG (ZONE_INIT,(TEXT("[NK]++++XQH0000::COM_Open( )----\r\n")));
DEBUGMSG (ZONE_INIT,(TEXT("[NK]++++XQH0000::COM_Open( )----\r\n")));
DEBUGMSG (ZONE_INIT,(TEXT("[NK]++++XQH0000::COM_Open( )----\r\n")));//2009--10--13 XQH 在RELEASE版本下不打印-----那怕ZONE_INIT的值为1,所以在RELEASE板本下
DEBUGMSG (1,(TEXT("[NK]++++XQH0000::COM_Open( )----\r\n"))); //2009--10--13 XQH 在RELEASE版本下不打印
复制代码