summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralt-0191 <[email protected]>2026-02-26 21:10:04 +0800
committeralt-0191 <[email protected]>2026-03-18 15:23:28 +0800
commit20fdaeef6ca8853002087927e460c0b6339049cd (patch)
tree08266aa2573d05e50c58bdefe6ec10f8e0bf0ec1 /src
parent6b0d20d70dbe0462fc89a92ab0c0ca04a9c625d0 (diff)
ch58x: fix MCU macro naming and add get_deps/boards entries
Diffstat (limited to 'src')
-rw-r--r--src/common/tusb_mcu.h4
-rw-r--r--src/tusb_option.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/common/tusb_mcu.h b/src/common/tusb_mcu.h
index 02364d580..dfeae3fbb 100644
--- a/src/common/tusb_mcu.h
+++ b/src/common/tusb_mcu.h
@@ -629,8 +629,8 @@
#define TUP_DCD_EDPT_CLOSE_API
#endif
-#elif TU_CHECK_MCU(OPT_MCU_CH582)
- // CH58x has 2 independent USBFS controllers with merged EP registers, FS only.
+#elif TU_CHECK_MCU(OPT_MCU_CH58X)
+ // CH582/583 has 2 independent USBFS controllers with merged EP registers, FS only.
#define TUP_USBIP_WCH_CH58X
#ifndef CFG_TUD_WCH_USBIP_USBFS
diff --git a/src/tusb_option.h b/src/tusb_option.h
index 50998613a..699e3d44d 100644
--- a/src/tusb_option.h
+++ b/src/tusb_option.h
@@ -193,7 +193,9 @@
#define OPT_MCU_CH32F20X 2210 ///< WCH CH32F20x
#define OPT_MCU_CH32V20X 2220 ///< WCH CH32V20X
#define OPT_MCU_CH32V103 2230 ///< WCH CH32V103
-#define OPT_MCU_CH58X 2240 ///< WCH CH582/CH583
+#define OPT_MCU_CH58X 2240 ///< WCH CH58x series (CH582/CH583)
+#define OPT_MCU_CH582 OPT_MCU_CH58X ///< alias
+#define OPT_MCU_CH583 OPT_MCU_CH58X ///< alias
// NXP LPC MCX
#define OPT_MCU_MCXN9 2300 ///< NXP MCX N9 Series