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