mirror of https://github.com/ARMmbed/mbed-os.git
minimal-printf: README updates
parent
30c947efbb
commit
554a04ba5f
|
@ -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
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue