From 8f70a6a886aa557dd87086b807367eef662a7e77 Mon Sep 17 00:00:00 2001 From: hathach Date: Tue, 26 Nov 2013 13:15:40 +0700 Subject: change endian conversion to native to be & be to native completely deferred xfer isr event to usbd task complete read10, write10 sequence for large data transfer --- tinyusb/hal/hal.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tinyusb/hal') 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 } -- cgit v1.3.1