From 8c3fc64559b6d0c72a80ee9ced18b307a0820f03 Mon Sep 17 00:00:00 2001 From: Rocco Marco Guglielmi Date: Sun, 27 Jan 2019 14:59:38 +0000 Subject: Updated testes/STM32/STM32F4xx demos for STM32F4 Discovery to be compliant with new project organization/makefile mechanisms Batch review of *_USE_ADVANCED macros git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_19.1.x@12618 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/ex/ST/lis3mdl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'os/ex/ST/lis3mdl.c') diff --git a/os/ex/ST/lis3mdl.c b/os/ex/ST/lis3mdl.c index 559564744..796cc2486 100644 --- a/os/ex/ST/lis3mdl.c +++ b/os/ex/ST/lis3mdl.c @@ -476,7 +476,7 @@ void lis3mdlStart(LIS3MDLDriver *devp, const LIS3MDLConfig *config) { { cr[0] = LIS3MDL_AD_CTRL_REG1; cr[1] = devp->config->compoutputdatarate; -#if LIS3MDL_COMP_USE_ADVANCED || defined(__DOXYGEN__) +#if LIS3MDL_USE_ADVANCED || defined(__DOXYGEN__) cr[1] |= devp->config->compoperationmodexy; #else cr[1] |= LIS3MDL_CTRL_REG1_OM0 | LIS3MDL_CTRL_REG1_OM1; @@ -491,7 +491,7 @@ void lis3mdlStart(LIS3MDLDriver *devp, const LIS3MDLConfig *config) { /* Control register 3 configuration block.*/ { cr[3] = 0; -#if LIS3MDL_COMP_USE_ADVANCED || defined(__DOXYGEN__) +#if LIS3MDL_USE_ADVANCED || defined(__DOXYGEN__) cr[3] = devp->config->compconversionmode; #endif } @@ -499,7 +499,7 @@ void lis3mdlStart(LIS3MDLDriver *devp, const LIS3MDLConfig *config) { /* Control register 4 configuration block.*/ { cr[4] = 0; -#if LIS3MDL_COMP_USE_ADVANCED || defined(__DOXYGEN__) +#if LIS3MDL_USE_ADVANCED || defined(__DOXYGEN__) cr[4] = devp->config->compoperationmodez | devp->config->endianness; #endif } @@ -507,7 +507,7 @@ void lis3mdlStart(LIS3MDLDriver *devp, const LIS3MDLConfig *config) { /* Control register 5 configuration block.*/ { cr[5] = 0; -#if LIS3MDL_COMP_USE_ADVANCED || defined(__DOXYGEN__) +#if LIS3MDL_USE_ADVANCED || defined(__DOXYGEN__) cr[5] = devp->config->blockdataupdate; #endif } -- cgit v1.2.3