mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
Generalize conditional compilation setting
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3962 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -1409,7 +1409,7 @@ static int stm32_i2c_process(FAR struct i2c_dev_s *dev, FAR struct i2c_msg_s *ms
|
|||||||
* will not complete normally if the FSMC is enabled.
|
* will not complete normally if the FSMC is enabled.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CONFIG_STM32_I2C1
|
#if !defined(CONFIG_STM32_FSMC) || !defined (CONFIG_STM32_I2C1)
|
||||||
stm32_i2c_sem_waitstop(priv);
|
stm32_i2c_sem_waitstop(priv);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -1550,7 +1550,7 @@ static int stm32_i2c_process(FAR struct i2c_dev_s *dev, FAR struct i2c_msg_s *ms
|
|||||||
* will not complete normally if the FSMC is enabled.
|
* will not complete normally if the FSMC is enabled.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_STM32_I2C1
|
#if defined(CONFIG_STM32_FSMC) && defined (CONFIG_STM32_I2C1)
|
||||||
stm32_i2c_sem_waitstop(priv);
|
stm32_i2c_sem_waitstop(priv);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user