Skip to content

Commit bd2b7d8

Browse files
JiafeiPandanieldegrasse
authored andcommitted
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>
1 parent 5ca8be2 commit bd2b7d8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/hal_nxp/mcux/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ zephyr_compile_definitions_ifdef(
101101
FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL=1
102102
)
103103

104+
zephyr_compile_definitions_ifdef(
105+
CONFIG_I2C_NXP_II2C
106+
I2C_RETRY_TIMES=40000
107+
)
108+
104109
# note: if FSL_IRQSTEER_ENABLE_MASTER_INT is not
105110
# defined then it will automatically be defined
106111
# and set to 1 via fsl_irqsteer.h

0 commit comments

Comments
 (0)