diff options
Diffstat (limited to 'tinyusb/hal')
| -rw-r--r-- | tinyusb/hal/hal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tinyusb/hal/hal.h b/tinyusb/hal/hal.h index b26804efc..65c3776b1 100644 --- a/tinyusb/hal/hal.h +++ b/tinyusb/hal/hal.h @@ -109,8 +109,10 @@ static inline bool hal_debugger_is_attached(void) // TODO check core M3/M4 defined instead #if !defined(_TEST_) && !(TUSB_CFG_MCU==MCU_LPC11UXX) return ( (CoreDebug->DHCSR & CoreDebug_DHCSR_C_DEBUGEN_Msk) == CoreDebug_DHCSR_C_DEBUGEN_Msk ); +#elif TUSB_CFG_DEBUG == 3 + return true; // force to break into breakpoint with debug = 3 #else - return true; // force to break into breakpoint + return false #endif } |
