summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-04-26 00:10:57 +0700
committerhathach <[email protected]>2024-04-26 00:10:57 +0700
commit223ce56625474764dc00229c44731858abcf4f29 (patch)
tree902d084185b85728ec7bdb48bb6726d221a2bdb2 /src/common
parent03ccc8d8dfe21fc158fc5eb8a4f3f90f425f8a3b (diff)
- add esp32 c3, c6 mcu option
- skip breakpoint for espressif riscv
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tusb_mcu.h4
-rw-r--r--src/common/tusb_verify.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/common/tusb_mcu.h b/src/common/tusb_mcu.h
index 00526bdba..5a567f2d5 100644
--- a/src/common/tusb_mcu.h
+++ b/src/common/tusb_mcu.h
@@ -429,8 +429,8 @@
#define TUP_MCU_MULTIPLE_CORE 0
#endif
-#if !defined(TUP_DCD_ENDPOINT_MAX)
- #warning "TUP_DCD_ENDPOINT_MAX is not defined for this MCU, default to 8"
+#if !defined(TUP_DCD_ENDPOINT_MAX) && defined(CFG_TUD_ENABLED) && CFG_TUD_ENABLED
+#warning "TUP_DCD_ENDPOINT_MAX is not defined for this MCU, default to 8"
#define TUP_DCD_ENDPOINT_MAX 8
#endif
diff --git a/src/common/tusb_verify.h b/src/common/tusb_verify.h
index 71406dacf..0a9549c99 100644
--- a/src/common/tusb_verify.h
+++ b/src/common/tusb_verify.h
@@ -84,7 +84,7 @@
if ( (*ARM_CM_DHCSR) & 1UL ) __asm("BKPT #0\n"); /* Only halt mcu if debugger is attached */ \
} while(0)
-#elif defined(__riscv)
+#elif defined(__riscv) && !TUP_MCU_ESPRESSIF
#define TU_BREAKPOINT() do { __asm("ebreak\n"); } while(0)
#elif defined(_mips)