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