add alternate _write for debugging USB issues

This commit is contained in:
Joey Castillo
2021-08-28 19:36:00 -04:00
parent 048b5c1d3f
commit 27e3863a05
3 changed files with 30 additions and 4 deletions

View File

@@ -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);
}