Subversion Repositories HomeAutomation

Rev

Blame | Last modification | View Log | SVN | RSS feed

  1. #include <ctype.h>
  2.  
  3. #include "termio.h"
  4. #include "debughelper.h"
  5.  
  6. void Debug_ByteToUart_p(const char *s, const uint8_t val)
  7. {
  8.     term_puts_p(s);
  9.     term_puts_P(" = 0x");
  10.     term_puthex_byte(val);
  11.     term_puts_P(" = ");
  12.     term_putbin_byte(val);
  13.     if ( isprint(val) ) {
  14.         term_puts_P(" (");
  15.         term_putc(val);
  16.         term_puts_P(")");
  17.     }
  18.     term_puts_P("\n");
  19. }
  20.