Search the Community
Showing results for tags 'printf'.
Found 2 results
I would like to share with you this library. Is an embedded version of the famous "printf ( )". - https://github.com/agaelema/Embedded_Printf The start point was this post in the e2e where an user share a code. - http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/30479/107146 I modified the code inserting new functions as binary notation, float notation, scientific notation, functions to convert numbers into strings and strings into numbers. The user can enable some #define enabling/disabling functions to use just what is useful. This is an resume comparison between the CCS native "printf" and this library (using th Launchpad EXP430FR6989 at 1MHz). - http://processors.wiki.ti.com/index.php/Printf_support_for_MSP430_CCSTUDIO_compiler To facilitate the port to other devices there is a separated file. Currently there are two ports: MSP430G2553 and MSP430FR6989. I hope it is useful.
ervplecter posted a topic in Energia - TivaC/CC3XXXgreetings, my wireless sensor project using the CC3200(mod) is coming up great and progressing fast. As I'm porting some code from my previous platform (pic + CC3000), I'm having trouble with the usual suspect printf. on the one hand, I've used simplified variants of printf in some arduino programs but I would definitely have the use of the full versatility of the stock printf as I'm far from the code size limit. In my previous platform / compiler, I just needed to provide the low level function that maps the output of printf to the UART, like putc or putchar. I've also read a similar post / question with the suggestion to redefine / override putchchar in the main code, however, this doesn't compile as I'm trying to redefine something that is a #define and not a function. my printf calls compile, they just don't output anything. What would be the best practice to have printf properly redirected to the UART ? I've read that it's not so good to try to override stock functions from the standard libraries, so I feel a bit stuck there. thank you for your help, Erv'