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

📄 printf.h

📁 tw9910的驱动源码,来自techwell的FAE
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -