summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-09-01 08:11:22 +0700
committerhathach <[email protected]>2019-09-01 08:11:22 +0700
commit2d041aaa1d6c1dddf133f9e9e6f043687e5372ce (patch)
tree59ae2f2cd6fd7606d5dec1685cf95c585e836aed /src/common
parent451a4156636c5a26b8898554bb8bcd54a9e9d9f2 (diff)
clean up
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tusb_verify.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/common/tusb_verify.h b/src/common/tusb_verify.h
index 08ddf78ad..b4f981d4a 100644
--- a/src/common/tusb_verify.h
+++ b/src/common/tusb_verify.h
@@ -60,15 +60,13 @@
// Halt CPU (breakpoint) when hitting error, only apply for Cortex M3, M4, M7
#if defined(__ARM_ARCH_7M__) || defined (__ARM_ARCH_7EM__)
-
-#define TU_BREAKPOINT() do \
-{ \
- volatile uint32_t* ARM_CM_DHCSR = ((volatile uint32_t*) 0xE000EDF0UL); /* Cortex M CoreDebug->DHCSR */ \
- if ( (*ARM_CM_DHCSR) & 1UL ) __asm("BKPT #0\n"); /* Only halt mcu if debugger is attached */ \
-} while(0)
-
+ #define TU_BREAKPOINT() do \
+ { \
+ volatile uint32_t* ARM_CM_DHCSR = ((volatile uint32_t*) 0xE000EDF0UL); /* Cortex M CoreDebug->DHCSR */ \
+ if ( (*ARM_CM_DHCSR) & 1UL ) __asm("BKPT #0\n"); /* Only halt mcu if debugger is attached */ \
+ } while(0)
#else
-#define TU_BREAKPOINT()
+ #define TU_BREAKPOINT()
#endif
/*------------------------------------------------------------------*/