formatwr.h

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