Skip to content

Commit 4530eb2

Browse files
committed
drivers: interrupt_controller: Update CMakeLists to fix build error
Now use the 5-parameter function "PINT_PinInterruptConfig" deprecated in MCUX SDK, need to add compile definition 'PINT_USE_LEGACY_CALBACK' to make intc_nxp_pint compatible with updated 'fsl_pint' driver. Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
1 parent 6939790 commit 4530eb2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/interrupt_controller/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,8 @@ if(CONFIG_PLIC_SHELL)
5959
)
6060
endif()
6161

62+
if(CONFIG_NXP_PINT)
63+
zephyr_compile_definitions(PINT_USE_LEGACY_CALLBACK=1)
64+
endif()
65+
6266
zephyr_library_include_directories(${ZEPHYR_BASE}/arch/common/include)

0 commit comments

Comments
 (0)