Page 1 of 1

Using DebugPrintF and Forbid

Posted: Fri Mar 16, 2018 9:15 am
by capehill
Does DebugPrintF enter wait state? In other words, should DebugPrintFs be removed out of Forbid/Permit context?

Re: Using DebugPrintF and Forbid

Posted: Fri Mar 16, 2018 12:23 pm
by tonyw
No, DebugPrintF() waits on the "done" bit in the serial device register. It uses no interrupts and hangs the machine while it outputs the string of characters.

Forbid/Permit calls are unnecessary for DebugPrintF() to work and will have no effect on it.

Re: Using DebugPrintF and Forbid

Posted: Fri Mar 16, 2018 1:54 pm
by capehill
Thanks for the information.