summaryrefslogtreecommitdiff
path: root/tinyusb/hal/hal.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-05-31 13:57:57 +0700
committerhathach <[email protected]>2013-05-31 13:57:57 +0700
commit3b9a616ca926172f299eb93eab0269bcea26d105 (patch)
tree986a87fd7e483f8f8b7fd9ee80f2dec55fffa6f2 /tinyusb/hal/hal.h
parent04a641f0670eb448f561aa945ecc2a7cf0365469 (diff)
change at86rf to 1ghznode
rom device runs ok with lpc11uxx
Diffstat (limited to 'tinyusb/hal/hal.h')
-rw-r--r--tinyusb/hal/hal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tinyusb/hal/hal.h b/tinyusb/hal/hal.h
index d97f5463f..98c1c7e46 100644
--- a/tinyusb/hal/hal.h
+++ b/tinyusb/hal/hal.h
@@ -87,7 +87,7 @@ static inline void hal_interrupt_disable(uint8_t controller_id) ATTR_ALWAYS_INLI
static inline bool hal_debugger_is_attached(void) ATTR_PURE ATTR_ALWAYS_INLINE;
static inline bool hal_debugger_is_attached(void)
{
-#ifndef _TEST_
+#if !defined(_TEST_) && !(MCU==MCU_LPC11UXX)
return (CoreDebug->DHCSR & CoreDebug_DHCSR_C_DEBUGEN_Msk) == CoreDebug_DHCSR_C_DEBUGEN_Msk;
#else
return false;