Paparazzi UAS  v5.15_devel-58-g208c37b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
printf.h
Go to the documentation of this file.
1 /*
2  ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
3  2011,2012 Giovanni Di Sirio.
4 
5  This file is part of ChibiOS/RT.
6 
7  ChibiOS/RT is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 3 of the License, or
10  (at your option) any later version.
11 
12  ChibiOS/RT is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20 
29 #ifndef _PRINTF_H_
30 #define _PRINTF_H_
31 
32 #include <stdarg.h>
33 #include <ch.h>
34 #include <hal.h>
35 
39 #if !defined(CHPRINTF_USE_FLOAT) || defined(__DOXYGEN__)
40 #define CHPRINTF_USE_FLOAT TRUE
41 #endif
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 void directchprintf(BaseSequentialStream *chp, const char *fmt, ...);
47 void directchvprintf(BaseSequentialStream *chp, const char *fmt, va_list ap);
48 // __attribute__ ((format (printf, 2, 3)));
49 void chvsnprintf(char *buffer, size_t size, const char *fmt, va_list ap);
50 void chsnprintf(char *buffer, size_t size, const char *fmt, ...);
51 // __attribute__ ((format (printf, 3, 4)));
52 void chprintf(BaseSequentialStream *lchp, const char *fmt, ...) ;
53 void chvprintf(BaseSequentialStream *lchp, const char *fmt, va_list ap);
54 void smchsnprintf(char *buffer, size_t size, const char *fmt, ...);
55 void smchvsnprintf(char *buffer, size_t size, const char *fmt, va_list ap);
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 #endif /* _PRINTF_H_ */
62 
void directchvprintf(BaseSequentialStream *chp, const char *fmt, va_list ap)
Definition: printf.c:367
void chsnprintf(char *buffer, size_t size, const char *fmt,...)
Definition: printf.c:377
void chprintf(BaseSequentialStream *lchp, const char *fmt,...)
Definition: printf.c:395
void directchprintf(BaseSequentialStream *chp, const char *fmt,...)
Definition: printf.c:386
void smchvsnprintf(char *buffer, size_t size, const char *fmt, va_list ap)
Definition: printf.c:453
void chvprintf(BaseSequentialStream *lchp, const char *fmt, va_list ap)
Definition: printf.c:415
void chvsnprintf(char *buffer, size_t size, const char *fmt, va_list ap)
Definition: printf.c:372
void smchsnprintf(char *buffer, size_t size, const char *fmt,...)
Definition: printf.c:432