kinetis: Make kinetis_i2c_sem_wait_noncancelable optional
CONFIG_I2C_RESET is coming from imxrt_lpi2c.c Change-Id: I8f55eaf793386fe5ac1d4adaf310d6e0f08dcd92 Bug: https://github.com/apache/incubator-nuttx/pull/1999 Forwarded: https://github.com/apache/incubator-nuttx/pulls/rzr Signed-off-by: Philippe Coval <rzr@users.sf.net>
This commit is contained in:
parent
17e624eae4
commit
271016a3ad
@ -152,8 +152,12 @@ static inline void kinetis_i2c_sem_init(FAR struct kinetis_i2cdev_s *priv);
|
||||
static inline void
|
||||
kinetis_i2c_sem_destroy(FAR struct kinetis_i2cdev_s *priv);
|
||||
static inline int kinetis_i2c_sem_wait(FAR struct kinetis_i2cdev_s *priv);
|
||||
|
||||
#ifdef CONFIG_I2C_RESET
|
||||
static int
|
||||
kinetis_i2c_sem_wait_noncancelable(FAR struct kinetis_i2cdev_s *priv);
|
||||
#endif
|
||||
|
||||
static inline void kinetis_i2c_sem_post(struct kinetis_i2cdev_s *priv);
|
||||
|
||||
/* Signal Helper */
|
||||
@ -363,6 +367,7 @@ static inline int kinetis_i2c_sem_wait(FAR struct kinetis_i2cdev_s *priv)
|
||||
return nxsem_wait(&priv->mutex);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_I2C_RESET
|
||||
/****************************************************************************
|
||||
* Name: kinetis_i2c_sem_wait_noncancelable
|
||||
*
|
||||
@ -376,6 +381,7 @@ static int
|
||||
{
|
||||
return nxsem_wait_uninterruptible(&priv->mutex);
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: kinetis_i2c_sem_post
|
||||
|
Loading…
Reference in New Issue
Block a user