Skip to content

Commit 05c81a0

Browse files
committed
hal_nxp: mcux-sdk-ng: common: fix build issues
Add weak definitions to fix build issue without mcux sdk irqsteer drivers, zephyr/modules/hal/nxp/mcux/mcux-sdk-ng/drivers/common/fsl_common_arm.h:697: undefined reference to IRQSTEER_EnableInterrupt Signed-off-by: Biwen Li <[email protected]>
1 parent b374adf commit 05c81a0

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

mcux/mcux-sdk-ng/drivers/common/fsl_common_arm.h

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,8 +651,23 @@ _Pragma("diag_suppress=Pm120")
651651
#endif
652652

653653
#if defined(FSL_FEATURE_IRQSTEER_EXT_INT_MAX_NUM) && (FSL_FEATURE_IRQSTEER_EXT_INT_MAX_NUM > 0) && defined(FSL_FEATURE_IRQSTEER_IRQ_START_INDEX) && (FSL_FEATURE_IRQSTEER_IRQ_START_INDEX > 0)
654-
void IRQSTEER_EnableInterrupt(int32_t instIdx, IRQn_Type irq);
655-
void IRQSTEER_DisableInterrupt(int32_t instIdx, IRQn_Type irq);
654+
#ifndef FSL_IRQSTEER_H_
655+
__attribute__((weak)) void IRQSTEER_EnableInterrupt(int32_t irqsteerInstIdx, IRQn_Type interrupt)
656+
{
657+
(void)irqsteerInstIdx;
658+
(void)interrupt;
659+
}
660+
661+
__attribute__((weak)) void IRQSTEER_DisableInterrupt(int32_t irqsteerInstIdx, IRQn_Type interrupt)
662+
{
663+
(void)irqsteerInstIdx;
664+
(void)interrupt;
665+
}
666+
#else
667+
void IRQSTEER_EnableInterrupt(int32_t irqsteerInstIdx, IRQn_Type interrupt);
668+
void IRQSTEER_DisableInterrupt(int32_t irqsteerInstIdx, IRQn_Type interrupt);
669+
#endif
670+
656671
#endif
657672

658673
/*******************************************************************************

0 commit comments

Comments
 (0)