summaryrefslogtreecommitdiff
path: root/tinyusb/common
diff options
context:
space:
mode:
Diffstat (limited to 'tinyusb/common')
-rw-r--r--tinyusb/common/common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tinyusb/common/common.h b/tinyusb/common/common.h
index 323ff8ee8..a433fef06 100644
--- a/tinyusb/common/common.h
+++ b/tinyusb/common/common.h
@@ -83,6 +83,12 @@
//--------------------------------------------------------------------+
// MACROS
//--------------------------------------------------------------------+
+#ifndef _TEST_
+ #define ASM_BREAKPOINT __asm("BKPT #0\n") // Place breakpoint to stop the debugger at desire
+#else
+ #define ASM_BREAKPOINT
+#endif
+
#define STRING_(x) #x // stringify without expand
#define XSTRING_(x) STRING_(x) // expand then stringify
#define STRING_CONCAT_(a, b) a##b // concat without expand