This source replaces the standard printf() and sprintf() functions in the compiler C library with a VERY low resource version with a limited set of features and output types.

Features of tinyprintf include:
• %c character
• %d,%i signed integer (-sign added if needed)
• %s character string
• %u unsigned integer as decimal
• %x or %X unsigned integer as hexadecimal (uppercase)
• %% to write %

Normal printf()/sprintf() implementations on ARM have been measure at ~25K of flash space, using tinyprintf2 can restore ~24K of flas...

Sign Up For Full Access
Members gain full access to the Prosource library with dozens of source files for ARM Cortex, ATMega, PIC processors as well as desktop and embedded Linux systems. Solutions for bootloaders, Buildroot and Yocto targets as well as guided articles on embedded development to gain critical knowledge in new systems and speed up development.
Statistics:
Language:C
Files:1
Lines:213
Files size: 5.25 KB
 
RAM usage:12 bytes
Avg Flash:~1122 bytes
Code:
Source #1 - Members Only