printf.h
来自「yampp 7 USB firmware v 2.44 checked, wor」· C头文件 代码 · 共 61 行
H
61 行
/* ***********************************************************************
**
** Copyright (C) 2002 Jesper Hansen <jesperh@telia.com>
**
**
** Yampp-7/USB - output formating routines
**
** File printf.h
**
*************************************************************************
**
** This file is part of the yampp system.
**
** This program is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License
** as published by the Free Software Foundation; either version 2
** of the License, or (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software Foundation,
** Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
**
*************************************************************************
**
** Revision History
**
** when what who why
**
** 2002-03-15 1.0 Jesper initial release
**
*********************************************************************** */
extern int _p_printf(char const *fmt0, ...);
extern int _p_fprintf(PCFUNC func, char const *fmt0, ...);
#if defined(ENABLE_LCD) || defined(ENABLE_UART)
#define printf(format, args...) _p_printf(PSTR(format) , ## args)
#define fprintf(channel,format, args...) _p_fprintf(channel,PSTR(format) , ## args)
#else
#define printf(format, args...)
#define fprintf(channel,format, args...)
#endif
extern void _p_puts(char const *s);
extern void _p_fputs(PCFUNC func, char const *s);
#if defined(ENABLE_LCD) || defined(ENABLE_UART)
#define puts(str) _p_puts(PSTR(str))
#define fputs(channel,str) _p_fputs(channel,PSTR(str))
#else
#define puts(str)
#define _p_puts(str)
#define fputs(channel,str)
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?