formatwr.h
Go to the documentation of this file.00001
00038 #ifndef MWARE_FORMATWR_H
00039 #define MWARE_FORMATWR_H
00040
00041 #include <stdarg.h>
00042 #include <appconfig.h>
00043 #include <cpu/attr.h>
00044
00049 #define PRINTF_DISABLED 0
00050 #define PRINTF_NOMODIFIERS 1
00051 #define PRINTF_REDUCED 2
00052 #define PRINTF_NOFLOAT 3
00053 #define PRINTF_FULL 4
00054
00055
00056 #ifndef CONFIG_PRINTF_RETURN_COUNT
00057
00058 #define CONFIG_PRINTF_RETURN_COUNT 1
00059 #endif
00060
00061 int
00062 _formatted_write(
00063 const char *format,
00064 void put_char_func(char c, void *user_data),
00065 void *user_data,
00066 va_list ap);
00067
00068 #if CPU_HARVARD
00069 #include <mware/pgm.h>
00070 int _formatted_write_P(
00071 const char * PROGMEM format,
00072 void put_char_func(char c, void *user_data),
00073 void *user_data,
00074 va_list ap);
00075 #endif
00076
00077 #endif
00078