On 07/04/15 03:30, Hooao wrote:
Hi I would like using a SERIAL PORT printing some debug message on my hardware platform, so I need to write a function like "printf". But I don't exactly know HOW THE GUN COMPILER deal with "parameter uncertainty". Would some guys help me?? Many THANKS.
If you have a bare-metal platform and you want to do some IO on it, you might want to look at libgloss, which is part of newlib AFAIU. newlib is a C-library for embedded systems and will have an implementation of printf that works on embedded devices. Kyrill