From a57090ead973037c0de38aa67b55283e8dd776cb Mon Sep 17 00:00:00 2001 From: Dien-Nhung Nguyen-Phu Date: Thu, 11 Jul 2024 20:53:54 +0700 Subject: usb: enable debug log over uart --- src/usb/debug.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/usb/debug.h (limited to 'src/usb/debug.h') diff --git a/src/usb/debug.h b/src/usb/debug.h new file mode 100644 index 0000000..1279115 --- /dev/null +++ b/src/usb/debug.h @@ -0,0 +1,14 @@ +#ifndef __DEBUG_H__ +#define __DEBUG_H__ + +#include "CH58x_common.h" + + +#define _TRACE() PRINT("> "); PRINT(__FILE__);PRINT(": "); PRINT(__func__); \ + PRINT("()\n") + +void print_setuppk(USB_SETUP_REQ *setup_req_pk); +void print_status_reg(); +void print_intflag_reg(); + +#endif /* __DEBUG_H__ */ -- cgit v1.2.3