X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcfg%2Fcfg_formatwr.h;h=ba08654cd790d7e6e3a7e6de13061ec11e0b3f66;hb=34b2a78c7c59a3357d05dfff157908d5d9b98501;hp=a3cf6f624129e38efcd16df5156f876f83595e49;hpb=9bde379b39600b3023bc42ea7affdab4edc8cf18;p=bertos.git diff --git a/bertos/cfg/cfg_formatwr.h b/bertos/cfg/cfg_formatwr.h index a3cf6f62..ba08654c 100644 --- a/bertos/cfg/cfg_formatwr.h +++ b/bertos/cfg/cfg_formatwr.h @@ -37,11 +37,12 @@ * \author Daniele Basile */ -#ifndef CFG_FORMTWR_H -#define CFG_FORMTWR_H +#ifndef CFG_FORMATWR_H +#define CFG_FORMATWR_H /** * printf()-style formatter configuration. + * $WIZ$ type = "enum"; value_list = "printf_list" * * \sa PRINTF_DISABLED * \sa PRINTF_NOMODIFIERS @@ -51,6 +52,16 @@ */ #define CONFIG_PRINTF PRINTF_FULL +/** + * Size of buffer to format "%" sequences in printf. + * + * Warning: no check on buffer size is done when formatting, be careful especially + * with big numbers and %f formatting. + * + * $WIZ$ type = "int" + * $WIZ$ min = 4 + */ +#define CONFIG_FRMWRI_BUFSIZE 20 -#endif /* CFG_FORMTWR_H */ +#endif /* CFG_FORMATWR_H */