modules: hal_nxp: add timeout for ii2c status polling

Enalbe II2C hal driver status polling timeout in order to avoid
blocking of some driver API, such as kernel hang during i2c scanning.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
This commit is contained in:
Jiafei Pan 2025-06-26 10:48:12 +08:00 committed by Daniel DeGrasse
parent 5ca8be264d
commit bd2b7d80d1

View File

@ -101,6 +101,11 @@ zephyr_compile_definitions_ifdef(
FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL=1
)
zephyr_compile_definitions_ifdef(
CONFIG_I2C_NXP_II2C
I2C_RETRY_TIMES=40000
)
# note: if FSL_IRQSTEER_ENABLE_MASTER_INT is not
# defined then it will automatically be defined
# and set to 1 via fsl_irqsteer.h