Skip to content
Snippets Groups Projects
Commit 8d22aee1 authored by Cristian Maglie's avatar Cristian Maglie Committed by Cristian Maglie
Browse files

Bootloader: added debug print command

parent f7faa197
No related branches found
No related tags found
No related merge requests found
......@@ -186,6 +186,21 @@ void sam_ba_monitor_run(void)
}
}
#if 0
// Prints a 32-bit integer in hex.
void printn(uint32_t n) {
char buff[8];
int i;
for (i=0; i<8; i++) {
int d = n & 0XF;
n = (n >> 4);
buff[7-i] = d > 9 ? 'A' + d - 10 : '0' + d;
}
ptr_monitor_if->putdata(buff, 8);
}
#endif
void sam_ba_monitor_loop(void)
{
length = ptr_monitor_if->getdata(data, SIZEBUFMAX);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment