summaryrefslogtreecommitdiffstats
path: root/watch-library/watch/watch_private.c
diff options
context:
space:
mode:
authorJoey Castillo <jose.castillo@gmail.com>2021-08-28 19:36:00 -0400
committerJoey Castillo <jose.castillo@gmail.com>2021-08-28 19:44:52 -0400
commit27e3863a0558a21b4364a39595873e5902d87464 (patch)
treefd9d1b9dfc8fa8489f9cda347a4e5a5c19e28aa1 /watch-library/watch/watch_private.c
parent048b5c1d3fdc9c58acccd5558fd3254fbf19ece8 (diff)
downloadSensor-Watch-27e3863a0558a21b4364a39595873e5902d87464.tar.gz
Sensor-Watch-27e3863a0558a21b4364a39595873e5902d87464.tar.bz2
Sensor-Watch-27e3863a0558a21b4364a39595873e5902d87464.zip
add alternate _write for debugging USB issues
Diffstat (limited to 'watch-library/watch/watch_private.c')
-rw-r--r--watch-library/watch/watch_private.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/watch-library/watch/watch_private.c b/watch-library/watch/watch_private.c
index c9f0b3c0..550419a2 100644
--- a/watch-library/watch/watch_private.c
+++ b/watch-library/watch/watch_private.c
@@ -106,6 +106,15 @@ int _read() {
return 0;
}
+// Alternate function that outputs to the debug UART. useful for debugging USB issues.
+// int _write(int file, char *ptr, int len) {
+// (void)file;
+// int pos = 0;
+// while(pos < len) watch_debug_putc(ptr[pos++]);
+
+// return 0;
+// }
+
void USB_Handler(void) {
tud_int_handler(0);
}