4 * Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
5 * This file is part of DevLib - See devlib/README for information.
10 * \brief Basic "printf", "sprintf" and "fprintf" formatter.
15 *#* Revision 1.6 2005/01/08 08:50:06 bernie
16 *#* Make more portable.
18 *#* Revision 1.5 2004/08/25 14:12:09 rasky
19 *#* Aggiornato il comment block dei log RCS
21 *#* Revision 1.4 2004/08/04 15:53:47 rasky
22 *#* Nuove opzioni di configurazione per formatted_write e ridotto maggiormente l'utilizzo dellos tack
24 *#* Revision 1.3 2004/07/29 22:57:09 bernie
25 *#* Add values for new-style CONFIG_PRINTF option.
27 *#* Revision 1.2 2004/06/03 11:27:09 bernie
28 *#* Add dual-license information.
30 *#* Revision 1.1 2004/05/23 15:43:16 bernie
31 *#* Import mware modules.
34 #ifndef MWARE_FORMATWR_H
35 #define MWARE_FORMATWR_H
37 #include <stdarg.h> /* va_list */
39 #include <cpu.h> /* CPU_HARVARD */
42 * \name _formatted_write() configuration
45 #define PRINTF_DISABLED 0
46 #define PRINTF_NOMODIFIERS 1
47 #define PRINTF_REDUCED 2
48 #define PRINTF_NOFLOAT 3
52 #ifndef CONFIG_PRINTF_RETURN_COUNT
53 /*! Enable/disable _formatted_write return value */
54 #define CONFIG_PRINTF_RETURN_COUNT 1
60 void put_char_func(char c, void *user_data),
65 int _formatted_write_P(
66 const char * PROGMEM format,
67 void put_char_func(char c, void *user_data),
70 #endif /* CPU_HARVARD */
72 #endif /* MWARE_FORMATWR_H */