From 8abaf22bb6f2b63910cf35fb70cd223d0e4b30cd Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 22 Jun 2026 15:28:00 +0700 Subject: tusb_option: dedupe OPT_MCU_CH583 / make OPT_MCU_CH582 a token alias The CH58x->CH583 rename left OPT_MCU_CH583 defined twice at 2240 plus a second literal 2240 for OPT_MCU_CH582 -- a duplicate public MCU option macro (redefinition). Collapse to a single canonical OPT_MCU_CH583 and define OPT_MCU_CH582 as a token alias of it (matching the OPT_MCU_SAML21/MIMXRT10XX alias style), so there is one value and CH582 still selects the CH583 code path. Found by Codex review. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/tusb_option.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/tusb_option.h b/src/tusb_option.h index cb8e3f6bd..b5457fe8a 100644 --- a/src/tusb_option.h +++ b/src/tusb_option.h @@ -196,8 +196,7 @@ #define OPT_MCU_CH32V20X 2220 ///< WCH CH32V20X #define OPT_MCU_CH32V103 2230 ///< WCH CH32V103 #define OPT_MCU_CH583 2240 ///< WCH CH583 -#define OPT_MCU_CH582 2240 ///< alias to CH58x series -#define OPT_MCU_CH583 2240 ///< alias to CH58x series +#define OPT_MCU_CH582 OPT_MCU_CH583 ///< WCH CH582 (alias, same USB IP as CH583) // NXP LPC MCX #define OPT_MCU_MCXN9 2300 ///< NXP MCX N9 Series -- cgit v1.3.1