X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=common%2Fxprintf.h;h=f58bca817be791356cc11b2aed9a16841e03618d;hb=ea5bf49b8902a6ad4ab2d16aa769d42b20d568f6;hp=cddec994098e1b6525bd7a5209642f4528234ea8;hpb=d9c06db60006e2191d8b86e34f651644a54426b4;p=tmk_firmware.git diff --git a/common/xprintf.h b/common/xprintf.h index cddec99..f58bca8 100644 --- a/common/xprintf.h +++ b/common/xprintf.h @@ -23,7 +23,7 @@ void xputc(char chr); /*-----------------------------------------------------------------------------*/ -void xputs(const prog_char *string); +void xputs(const char *string_p); /* The string placed in the ROM is forwarded to xputc() directly. */ @@ -51,9 +51,9 @@ void xitoa(long value, char radix, char width); #define xsprintf(str, format, ...) __xsprintf(str, PSTR(format), ##__VA_ARGS__) #define xfprintf(func, format, ...) __xfprintf(func, PSTR(format), ##__VA_ARGS__) -void __xprintf(const prog_char *format, ...); /* Send formatted string to the registered device */ -void __xsprintf(char*, const prog_char *format, ...); /* Put formatted string to the memory */ -void __xfprintf(void(*func)(uint8_t), const prog_char *format, ...); /* Send formatted string to the specified device */ +void __xprintf(const char *format_p, ...); /* Send formatted string to the registered device */ +void __xsprintf(char*, const char *format_p, ...); /* Put formatted string to the memory */ +void __xfprintf(void(*func)(uint8_t), const char *format_p, ...); /* Send formatted string to the specified device */ /* Format string is placed in the ROM. The format flags is similar to printf().