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

📄 usart_printp.h

📁 STM32SDCardSourceCodeFATFS.rar
💻 H
字号:
#ifndef _USART_PRINTP_H_
#define _USART_PRINTP_H_

#ifndef  TRUE
#define  TRUE 1
#endif
#ifndef  FALSE
#define  FALSE 0
#endif

#define PRINTP_EN  	TRUE		//复杂的printp()函数是否使用
#define CR_as_CRLF	FALSE          // if true , you can use "\n" to act as CR/LF, 
                                    // if false , you have to use "\n\r",but can get a higher speed

extern char usart_putchar(char ch);     //串口1发1个字节
extern void prints(char* ctrl);         //串口发一串字符串

#if PRINTP_EN == TRUE
#include <ctype.h>
#include <string.h>
#include <stdarg.h>
void printp( char* ctrl, ...);
#endif


#endif  //_USART_PRINTP_H_

⌨️ 快捷键说明

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