4 * Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
5 * This file is part of DevLib - See README.devlib for information.
10 * \brief Basic "printf", "sprintf" and "fprintf" formatter.
15 *#* Revision 1.11 2006/07/19 12:56:27 bernie
16 *#* Convert to new Doxygen style.
18 *#* Revision 1.10 2005/11/04 16:20:02 bernie
19 *#* Fix reference to README.devlib in header.
21 *#* Revision 1.9 2005/07/19 07:25:46 bernie
22 *#* Use appconfig.h instead of cfg/config.h.
24 *#* Revision 1.8 2005/04/11 19:10:28 bernie
25 *#* Include top-level headers from cfg/ subdir.
27 *#* Revision 1.7 2005/02/16 20:28:03 bernie
30 *#* Revision 1.6 2005/01/08 08:50:06 bernie
31 *#* Make more portable.
33 *#* Revision 1.5 2004/08/25 14:12:09 rasky
34 *#* Aggiornato il comment block dei log RCS
36 *#* Revision 1.4 2004/08/04 15:53:47 rasky
37 *#* Nuove opzioni di configurazione per formatted_write e ridotto maggiormente l'utilizzo dellos tack
39 *#* Revision 1.3 2004/07/29 22:57:09 bernie
40 *#* Add values for new-style CONFIG_PRINTF option.
42 *#* Revision 1.2 2004/06/03 11:27:09 bernie
43 *#* Add dual-license information.
45 *#* Revision 1.1 2004/05/23 15:43:16 bernie
46 *#* Import mware modules.
49 #ifndef MWARE_FORMATWR_H
50 #define MWARE_FORMATWR_H
52 #include <stdarg.h> /* va_list */
53 #include <appconfig.h>
54 #include <cfg/cpu.h> /* CPU_HARVARD */
57 * \name _formatted_write() configuration
60 #define PRINTF_DISABLED 0
61 #define PRINTF_NOMODIFIERS 1
62 #define PRINTF_REDUCED 2
63 #define PRINTF_NOFLOAT 3
67 #ifndef CONFIG_PRINTF_RETURN_COUNT
68 /** Enable/disable _formatted_write return value */
69 #define CONFIG_PRINTF_RETURN_COUNT 1
75 void put_char_func(char c, void *user_data),
80 #include <mware/pgm.h>
81 int _formatted_write_P(
82 const char * PROGMEM format,
83 void put_char_func(char c, void *user_data),
86 #endif /* CPU_HARVARD */
88 #endif /* MWARE_FORMATWR_H */