aboutsummaryrefslogtreecommitdiffstats
path: root/testex/STM32/STM32L4xx/I2C-LSM6DS0
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2018-01-14 11:19:39 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2018-01-14 11:19:39 +0000
commitb28c62685d857b55dd8bc7e759a9f93ab0a51632 (patch)
treecc3285cdd4c1b4ec07340784f0c9087efa5c9a02 /testex/STM32/STM32L4xx/I2C-LSM6DS0
parentf6b807fd5a089607a1e21dbcad3c060363650fa1 (diff)
downloadChibiOS-b28c62685d857b55dd8bc7e759a9f93ab0a51632.tar.gz
ChibiOS-b28c62685d857b55dd8bc7e759a9f93ab0a51632.tar.bz2
ChibiOS-b28c62685d857b55dd8bc7e759a9f93ab0a51632.zip
Updated EX demos to be compliant with latest ChibiOS/HAL edit
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11273 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testex/STM32/STM32L4xx/I2C-LSM6DS0')
-rw-r--r--testex/STM32/STM32L4xx/I2C-LSM6DS0/main.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/testex/STM32/STM32L4xx/I2C-LSM6DS0/main.c b/testex/STM32/STM32L4xx/I2C-LSM6DS0/main.c
index 11c00d6e3..c1b087889 100644
--- a/testex/STM32/STM32L4xx/I2C-LSM6DS0/main.c
+++ b/testex/STM32/STM32L4xx/I2C-LSM6DS0/main.c
@@ -46,11 +46,11 @@ static const I2CConfig i2ccfg = {
};
static const LSM6DS0AccConfig lsm6ds0acccfg = {
- NULL, /* Use default sensitivity.*/
- NULL, /* Use default bias.*/
- LSM6DS0_ACC_FS_2G, /* Full scale value 2g.*/
- LSM6DS0_ACC_ODR_50Hz, /* Output data rate 100 Hz.*/
-#if LSM6DS0_ACC_USE_ADVANCED || defined(__DOXYGEN__)
+ NULL,
+ NULL,
+ LSM6DS0_ACC_FS_2G,
+ LSM6DS0_ACC_ODR_50Hz,
+#if LSM6DS0_ACC_USE_ADVANCED
LSM6DS0_ACC_OBW_AA,
LSM6DS0_ACC_HR_ENABLED,
LSM6DS0_ACC_FDS_DISABLED,
@@ -61,10 +61,10 @@ static const LSM6DS0AccConfig lsm6ds0acccfg = {
};
static const LSM6DS0GyroConfig lsm6ds0gyrocfg = {
- {0, 0, 0}, /* Use default sensitivity.*/
- {0, 0, 0}, /* Use default bias.*/
- LSM6DS0_GYRO_FS_245DPS, /* Full scale value 245DPS.*/
- LSM6DS0_GYRO_ODR_119HZ_FC_31 /* Output data rate 119 Hz.*/
+ NULL,
+ NULL,
+ LSM6DS0_GYRO_FS_245DPS,
+ LSM6DS0_GYRO_ODR_119HZ_FC_31,
#if LSM6DS0_GYRO_USE_ADVANCED || defined(__DOXYGEN__)
LSM6DS0_GYRO_LP_DISABLED,
LSM6DS0_GYRO_OUT_SEL_0,