more changes
This commit is contained in:
16
src/debug.c
16
src/debug.c
@@ -35,7 +35,7 @@ put_hex (uint8_t nibble)
|
||||
else
|
||||
c = 'a' + nibble - 0x0a;
|
||||
|
||||
_write (&c, 1);
|
||||
_write ((const char *)&c, 1);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -64,6 +64,20 @@ put_short (uint16_t x)
|
||||
_write ("\r\n", 2);
|
||||
}
|
||||
|
||||
void
|
||||
put_binary (const char *s, int len)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < len; i++)
|
||||
{
|
||||
put_byte_with_no_nl (s[i]);
|
||||
if ((i & 0x0f) == 0x0f)
|
||||
_write ("\r\n", 2);
|
||||
}
|
||||
_write ("\r\n", 2);
|
||||
}
|
||||
|
||||
void
|
||||
put_string (const char *s)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user