mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
arch/arm/src/imxrt/imxrt_enet.c: Fix a race condition in setting up the Ethernet Tx transfer.
This commit is contained in:
committed by
Gregory Nutt
parent
6e4545a924
commit
4eb118afd1
@@ -57,6 +57,7 @@
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_I2C_DRIVER) && defined(CONFIG_IMXRT_LPI2C1)
|
||||
static void imxrt_i2c_register(int bus)
|
||||
{
|
||||
FAR struct i2c_master_s *i2c;
|
||||
@@ -77,6 +78,7 @@ static void imxrt_i2c_register(int bus)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
@@ -109,7 +111,7 @@ int imxrt_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined ( CONFIG_I2C_DRIVER ) & (CONFIG_IMXRT_LPI2C1)
|
||||
#if defined(CONFIG_I2C_DRIVER) && defined(CONFIG_IMXRT_LPI2C1)
|
||||
imxrt_i2c_register(1);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user