I added the debug lib + sample. Joep, would you like your name to be
added as author?

I have good news and bad news...

Good: When I change the major constant to false to turn off the
library, none of the debug code is in the ASM file. So, this will
require no extra processing power when turned off.

Bad: I have some problem with print_string/debug_string. Can someone
please test my sample? the debug string does not seem to get carried
correctly to the print_string lib.

procedure debug_string(byte in debug_level,byte in str_in[]) is
   pragma inline
   if DEBUG_MASTER_ENABLE == TRUE  then
      if DEBUG_ENABLE[debug_level] == TRUE then
         print_string(debug_stream, str_in)
      end if
   end if
end procedure


const byte str1[] = "The loop has begun!"
debug_string(0,str1)


I only get some junk + "The loop ha" on my serial port.

Matt.

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to