diff options
| author | hathach <[email protected]> | 2026-06-22 15:28:00 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2026-06-22 15:28:00 +0700 |
| commit | 8abaf22bb6f2b63910cf35fb70cd223d0e4b30cd (patch) | |
| tree | d3f1185054dcb1050eb978741563c55abbf9bc00 | |
| parent | f567adb68ada4bc4fc3c7536e6f5f48ed786c400 (diff) | |
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) <[email protected]>
| -rw-r--r-- | src/tusb_option.h | 3 |
1 files changed, 1 insertions, 2 deletions
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 |
