Skip to content

Commit 00c41b2

Browse files
fix(Other): Corrected SoC targets for the MXC_SYS_RESET0_USB define (#1546)
Correctly define the MXC_SYS_RESET0_USB alias for targets that instead define MXC_SYS_RESET_USB instead. This is needed to bring up the HS USB peripheral on MAX32666 on Zephyr. Signed-off-by: Pete Johanson <pete.johanson@analog.com>
1 parent cf876ac commit 00c41b2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Libraries/zephyr/MAX/Include/wrap_max32_sys.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ void max32xx_system_init(void);
4949
#define ADI_MAX32_CLK_INRO MXC_SYS_CLOCK_NANORING
5050
#define ADI_MAX32_CLK_ERTCO MXC_SYS_CLOCK_X32K
5151

52+
#endif
53+
54+
#if defined(CONFIG_SOC_MAX32665) || defined(CONFIG_SOC_MAX32666) || defined(CONFIG_SOC_MAX32650)
55+
5256
#define MXC_SYS_RESET0_USB MXC_SYS_RESET_USB
57+
5358
#endif
5459

5560
#define z_sysclk_prescaler(v) MXC_SYS_SYSTEM_DIV_##v

0 commit comments

Comments
 (0)