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-LIS3MLD/main.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'testex/STM32/STM32F4xx/I2C-LIS3MLD') diff --git a/testex/STM32/STM32F4xx/I2C-LIS3MLD/main.c b/testex/STM32/STM32F4xx/I2C-LIS3MLD/main.c index 258bf13cc..0d094a3a5 100644 --- a/testex/STM32/STM32F4xx/I2C-LIS3MLD/main.c +++ b/testex/STM32/STM32F4xx/I2C-LIS3MLD/main.c @@ -42,14 +42,14 @@ static const I2CConfig i2ccfg = { }; static LIS3MDLConfig LIS3MDLcfg = { - &I2CD1, /* Pointer to I2C Driver.*/ - &i2ccfg, /* Pointer to I2C Configuration.*/ - NULL, /* Use default sensitivity.*/ - NULL, /* Use default bias.*/ - LIS3MDL_SAD_VCC, /* Slave address.*/ - LIS3MDL_FS_4GA, /* Full scale value.*/ - LIS3MDL_ODR_40HZ, /* Output data rate.*/ -#if LIS3MDL_USE_ADVANCED || defined(__DOXYGEN__) + &I2CD1, + &i2ccfg, + NULL, + NULL, + LIS3MDL_SAD_VCC, + LIS3MDL_FS_4GA, + LIS3MDL_ODR_40HZ, +#if LIS3MDL_USE_ADVANCED LIS3MDL_LP_ENABLED, LIS3MDL_MD_CONTINUOUS, LIS3MDL_OMXY_LOW_POWER, -- cgit v1.2.3