aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2018-03-14 11:04:47 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2018-03-14 11:04:47 +0000
commitbf900f9dbfff6c790b27214b165f4cd0de38cb16 (patch)
tree7e53a9493722ff2ac6cfad124df49b66bb2d4bf2
parent05a144509f022febee020f8cc1696be84872bcfe (diff)
downloadChibiOS-bf900f9dbfff6c790b27214b165f4cd0de38cb16.tar.gz
ChibiOS-bf900f9dbfff6c790b27214b165f4cd0de38cb16.tar.bz2
ChibiOS-bf900f9dbfff6c790b27214b165f4cd0de38cb16.zip
Fixes on LSM6DS0 demo and driver
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11739 110e8d01-0319-4d1e-a829-52ad28d1bb01
-rw-r--r--os/ex/ST/lsm6ds0.c3
-rw-r--r--testex/STM32/STM32F4xx/I2C-LSM6DS0/main.c2
2 files changed, 1 insertions, 4 deletions
diff --git a/os/ex/ST/lsm6ds0.c b/os/ex/ST/lsm6ds0.c
index 444c73dd7..fc3a3a98e 100644
--- a/os/ex/ST/lsm6ds0.c
+++ b/os/ex/ST/lsm6ds0.c
@@ -963,9 +963,6 @@ void lsm6ds0Start(LSM6DS0Driver *devp, const LSM6DS0Config *config) {
{
cr[1] = devp->config->gyrofullscale |
devp->config->gyrooutdatarate;
-#if LSM6DS0_GYRO_USE_ADVANCED || defined(__DOXYGEN__)
- cr[1] |= devp->config->gyrodecmode;
-#endif
}
/* Control register 2 configuration block.*/
diff --git a/testex/STM32/STM32F4xx/I2C-LSM6DS0/main.c b/testex/STM32/STM32F4xx/I2C-LSM6DS0/main.c
index bd1bd5d6a..48345bb57 100644
--- a/testex/STM32/STM32F4xx/I2C-LSM6DS0/main.c
+++ b/testex/STM32/STM32F4xx/I2C-LSM6DS0/main.c
@@ -63,7 +63,7 @@ static const LSM6DS0Config lsm6ds0cfg = {
LSM6DS0_GYRO_LP_DISABLED,
LSM6DS0_GYRO_OUT_SEL_0,
LSM6DS0_GYRO_HP_DISABLED,
- LSM6DS0_GYRO_HPCF_0
+ LSM6DS0_GYRO_HPCF_0,
#endif
#if LSM6DS0_USE_ADVANCED || defined(__DOXYGEN__)
LSM6DS0_BDU_BLOCKED,