minimal-printf: README updates

pull/12233/head
Bartek Szatkowski 2020-02-04 13:50:30 +00:00
parent 30c947efbb
commit 554a04ba5f
2 changed files with 8 additions and 4 deletions

View File

@ -140,15 +140,15 @@
"value": true
},
"minimal-printf-enable-64-bit": {
"help": "Enable printing 64 bit integers when using mprintf profile",
"help": "Enable printing 64 bit integers when using minimal printf library",
"value": true
},
"minimal-printf-enable-floating-point": {
"help": "Enable floating point printing when using mprintf profile",
"help": "Enable floating point printing when using minimal printf library",
"value": true
},
"minimal-printf-set-floating-point-max-decimals": {
"help": "Maximum number of decimals to be printed",
"help": "Maximum number of decimals to be printed when using minimal printf library",
"value": 6
}
},

View File

@ -1,7 +1,7 @@
# Minimal printf and snprintf
Library supports both printf and snprintf in 1252 bytes of flash.
Library supports both printf and snprintf in around 1300 bytes of flash.
Prints directly to stdio/UART without using malloc. All flags and precision modifiers are ignored.
There is no error handling if a writing error occurs.
@ -20,6 +20,10 @@ Supports:
* %s: string.
* %p: pointer (e.g. 0x00123456).
Note that support for:
* 64b modifiers is only present when `minimal-printf-enable-64-bit` config is set to `true` (default).
* Floating point parameters is only present when `minimal-printf-enable-floating-point` config is set to `true` (default).
Unrecognized format specifiers are treated as ordinary characters.
Floating point limitations: