We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7faa19 commit 8d22aeeCopy full SHA for 8d22aee
bootloaders/zero/sam_ba_monitor.c
@@ -186,6 +186,21 @@ void sam_ba_monitor_run(void)
186
}
187
188
189
+#if 0
190
+// Prints a 32-bit integer in hex.
191
+void printn(uint32_t n) {
192
+ char buff[8];
193
+ int i;
194
+ for (i=0; i<8; i++) {
195
+ int d = n & 0XF;
196
+ n = (n >> 4);
197
+
198
+ buff[7-i] = d > 9 ? 'A' + d - 10 : '0' + d;
199
+ }
200
+ ptr_monitor_if->putdata(buff, 8);
201
+}
202
+#endif
203
204
void sam_ba_monitor_loop(void)
205
{
206
length = ptr_monitor_if->getdata(data, SIZEBUFMAX);
0 commit comments