summaryrefslogtreecommitdiff
path: root/tinyusb/hal
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-11-26 13:15:40 +0700
committerhathach <[email protected]>2013-11-26 13:15:40 +0700
commit8f70a6a886aa557dd87086b807367eef662a7e77 (patch)
tree062c136d68c807be53bf74677c8210940bc5d661 /tinyusb/hal
parent51def3f7ed6b1ac849cb357a9868328d8c5e3117 (diff)
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
Diffstat (limited to 'tinyusb/hal')
-rw-r--r--tinyusb/hal/hal.h4
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
}