You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2020/09/01 21:18:32 UTC
[incubator-nuttx] branch master updated: drivers/sensors/mpu60x0.c:
Correct comments.
This is an automated email from the ASF dual-hosted git repository.
acassis 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 c98ec2a drivers/sensors/mpu60x0.c: Correct comments.
c98ec2a is described below
commit c98ec2ad3eeeca94f06c51eacddf468027dc7196
Author: Ouss4 <ab...@gmail.com>
AuthorDate: Tue Jul 7 23:25:58 2020 +0100
drivers/sensors/mpu60x0.c: Correct comments.
---
drivers/sensors/mpu60x0.c | 2 --
include/nuttx/sensors/mpu60x0.h | 11 +++++++----
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/drivers/sensors/mpu60x0.c b/drivers/sensors/mpu60x0.c
index 15be14e..e23bf3a 100644
--- a/drivers/sensors/mpu60x0.c
+++ b/drivers/sensors/mpu60x0.c
@@ -694,8 +694,6 @@ static void inline mpu_unlock(FAR struct mpu_dev_s *dev)
static int mpu_reset(FAR struct mpu_dev_s *dev)
{
- /* We support only SPI right now. */
-
#ifdef CONFIG_MPU60X0_SPI
if (dev->config.spi == NULL)
{
diff --git a/include/nuttx/sensors/mpu60x0.h b/include/nuttx/sensors/mpu60x0.h
index 0c0ae79..cd45092 100644
--- a/include/nuttx/sensors/mpu60x0.h
+++ b/include/nuttx/sensors/mpu60x0.h
@@ -91,7 +91,6 @@ struct i2c_master_s;
* them to disable or enable the unused interface type without
* changing their code.
*
- * Note, I2C support is unimplemented at present.
*/
struct mpu_config_s
@@ -107,10 +106,14 @@ struct mpu_config_s
FAR struct spi_dev_s *spi;
int spi_devid;
#else
- /* For users on I2C. (Unimplemented.) */
+ /* For users on I2C.
+ *
+ * i2c : the I2C master device
+ * addr : the I2C address.
+ */
- FAR struct i2c_master_s *i2c;
- int addr;
+ FAR struct i2c_master_s *i2c;
+ int addr;
#endif
};