From b28c62685d857b55dd8bc7e759a9f93ab0a51632 Mon Sep 17 00:00:00 2001 From: Rocco Marco Guglielmi Date: Sun, 14 Jan 2018 11:19:39 +0000 Subject: 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 --- testex/STM32/STM32F4xx/I2C-LSM6DS0/main.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'testex/STM32/STM32F4xx/I2C-LSM6DS0') diff --git a/testex/STM32/STM32F4xx/I2C-LSM6DS0/main.c b/testex/STM32/STM32F4xx/I2C-LSM6DS0/main.c index 8c010c36d..d775057ac 100644 --- a/testex/STM32/STM32F4xx/I2C-LSM6DS0/main.c +++ b/testex/STM32/STM32F4xx/I2C-LSM6DS0/main.c @@ -44,21 +44,21 @@ 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_DEC_X4, #endif }; static const LSM6DS0GyroConfig lsm6ds0gyrocfg = { - NULL, /* Use default sensitivity.*/ - NULL, /* Use default bias.*/ - LSM6DS0_GYRO_FS_245DPS, /* Full scale value 245DPS.*/ - LSM6DS0_GYRO_ODR_119HZ_FC_31, /* Output data rate 119 Hz.*/ -#if LSM6DS0_GYRO_USE_ADVANCED || defined(__DOXYGEN__) + NULL, + NULL, + LSM6DS0_GYRO_FS_245DPS, + LSM6DS0_GYRO_ODR_119HZ_FC_31, +#if LSM6DS0_GYRO_USE_ADVANCED LSM6DS0_GYRO_LP_DISABLED, LSM6DS0_GYRO_OUT_SEL_0, LSM6DS0_GYRO_HP_DISABLED, -- cgit v1.2.3