aboutsummaryrefslogtreecommitdiff
path: root/src/usb/debug.h
diff options
context:
space:
mode:
authorFrançois Cartegnie <281376+fcartegnie@users.noreply.github.com>2024-08-20 13:43:09 +0700
committerGitHub <noreply@github.com>2024-08-20 13:43:09 +0700
commitf5874d607315ff88b27414299089b8528b5bb07c (patch)
tree9db23b8e6cdfb06d8bab77e83224e604f20c4629 /src/usb/debug.h
parentb25d62d1362cfd711e6617a9212e3eddc4e9fddd (diff)
parentc3912e01a2767334103cd139d875d50c834f3f05 (diff)
Merge pull request #35 from kienvo/usb
feat: Receive data over USB
Diffstat (limited to 'src/usb/debug.h')
-rw-r--r--src/usb/debug.h14
1 files changed, 14 insertions, 0 deletions
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__ */