This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to rework "printf" function to use for two UARTS in the cygnal's MCU?

Hi,everyone!
A problem here:The cygnal's MCU has two
serial ports,so "printf" function must be reworked.But I don't know how to do it.
Give me a hand!
Thanks a lot!

Parents
  • Mark,

    Yes, of course, that gives you compile-time control to produce an image which either has debug output or doesn't.

    I needed the ability to enable/disable the debug output at run-time

    In fact, I did also use conditional-compilation so that I could build either a completely "clean" (debug-free) image, or one with the runtime-controllable debug

Reply
  • Mark,

    Yes, of course, that gives you compile-time control to produce an image which either has debug output or doesn't.

    I needed the ability to enable/disable the debug output at run-time

    In fact, I did also use conditional-compilation so that I could build either a completely "clean" (debug-free) image, or one with the runtime-controllable debug

Children
No data