printf.h

来自「tw9910的驱动源码,来自techwell的FAE」· C头文件 代码 · 共 55 行

H
55
字号
#ifndef __PRINTF__
#define __PRINTF__

#include "Config.h"
#include "typedefs.h"
#include "reg.h"

#define _outchar(c) while(1) { if( !RS_Xbusy ) { SBUF = c; RS_Xbusy=1; break; } }
#define Putch(c) _outchar(c)

#ifndef NOSERIAL

 void Printf ( const char CODE_P *fmt, ... );
 void Puts ( CODE_P char *ptr );
 
#else

 #undef  DEBUG
 #define Printf	    ;//
 #define Puts   	;//

#endif


#ifndef DEBUG

 #define dPuts(a)	;//
 #define wPuts(a)	;//
 #define ePuts(a)	;//

#else

 void dPrintf( const char CODE_P *fmt, ... );
 void wPrintf( const char CODE_P *fmt, ... );
 void ePrintf( const char CODE_P *fmt, ... );

 void dPuts( CODE_P char *ptr );
 void wPuts( CODE_P char *ptr );
 void ePuts( CODE_P char *ptr );

#endif	// DEBUG

BYTE Getch(void);
//BYTE Getche(void);

#define DEBUG_ERR	1
#define DEBUG_WARN	2
#define DEBUG_INFO	3
#define DEBUG_BREAK	4




#endif	//__PRINTF__

⌨️ 快捷键说明

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