This is an automated email from the ASF dual-hosted git repository. davids5 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push: new d79e673 imxrt added missing i2c prescale mask new 2d5141b Merge pull request #222 from han1raaijmakers/imxrtI2C d79e673 is described below commit d79e6734683743a47c535822637b2bc74c2f6846 Author: Peter van der Perk <peter.vanderp...@nxp.com> AuthorDate: Fri Feb 7 10:09:43 2020 +0100 imxrt added missing i2c prescale mask --- arch/arm/src/imxrt/imxrt_lpi2c.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/imxrt/imxrt_lpi2c.c b/arch/arm/src/imxrt/imxrt_lpi2c.c index c1a2e08..404119e 100644 --- a/arch/arm/src/imxrt/imxrt_lpi2c.c +++ b/arch/arm/src/imxrt/imxrt_lpi2c.c @@ -1118,7 +1118,8 @@ static void imxrt_lpi2c_setclock(FAR struct imxrt_lpi2c_priv_s *priv, } } - imxrt_lpi2c_modifyreg(priv, IMXRT_LPI2C_MCFGR1_OFFSET, 0, + imxrt_lpi2c_modifyreg(priv, IMXRT_LPI2C_MCFGR1_OFFSET, + LPI2C_MCFGR1_PRESCALE_MASK, LPI2C_MCFGR1_PRESCALE(best_prescale)); /* Re-enable LPI2C if it was enabled previously */ @@ -1304,7 +1305,8 @@ static int imxrt_lpi2c_isr_process(struct imxrt_lpi2c_priv_s *priv) if ((priv->msgv->flags & I2C_M_NOSTART) == 0) { - imxrt_lpi2c_traceevent(priv, I2CEVENT_STARTRESTART, priv->msgc); + imxrt_lpi2c_traceevent(priv, I2CEVENT_STARTRESTART, + priv->msgc); imxrt_lpi2c_sendstart(priv, priv->msgv->addr); } else