usart_printp.h

来自「关于STM32的FAT32文件系统源代码」· C头文件 代码 · 共 28 行

H
28
字号
#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 + =
减小字号Ctrl + -
显示快捷键?