printf.h

来自「显示屏驱动源代码」· C头文件 代码 · 共 44 行

H
44
字号
#ifndef __PRINTF__
#define __PRINTF__

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

#ifdef SERIAL

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

#else

 #undef  DEBUG
 #define Printf(a,b)	//
 #define Puts(a)   		//

#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);


#endif	//__PRINTF__

⌨️ 快捷键说明

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