summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-11-18 12:37:34 +0700
committerGitHub <[email protected]>2019-11-18 12:37:34 +0700
commitc2fb813658d6242dbea13d9f811482e34cd712c0 (patch)
treea2298b7108ecce66607741f3359192292a8d9849 /src/common
parent56abce44f32710f28fc55a175b744ce6852f399e (diff)
parent679821e9174f9410960f974eefd46a94e74cfeda (diff)
Merge pull request #217 from xobs/valentyusb-eptri
WIP: Add Valentyusb eptri
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tusb_verify.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/tusb_verify.h b/src/common/tusb_verify.h
index 41364d055..1ad6d3fb0 100644
--- a/src/common/tusb_verify.h
+++ b/src/common/tusb_verify.h
@@ -91,8 +91,12 @@
if ( (*ARM_CM_DHCSR) & 1UL ) __asm("BKPT #0\n"); /* Only halt mcu if debugger is attached */ \
} while(0)
#else
+#if defined(__riscv)
+ #define TU_BREAKPOINT() do { __asm("ebreak\n"); } while(0)
+#else
#define TU_BREAKPOINT()
#endif
+#endif
/*------------------------------------------------------------------*/
/* Macro Generator