From 8c3fc64559b6d0c72a80ee9ced18b307a0820f03 Mon Sep 17 00:00:00 2001 From: Rocco Marco Guglielmi <roccomarco.guglielmi@gmail.com> 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/lsm303dlhc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'os/ex/ST/lsm303dlhc.c') diff --git a/os/ex/ST/lsm303dlhc.c b/os/ex/ST/lsm303dlhc.c index 8fa988ab7..abf5fcbbd 100644 --- a/os/ex/ST/lsm303dlhc.c +++ b/os/ex/ST/lsm303dlhc.c @@ -885,7 +885,7 @@ void lsm303dlhcStart(LSM303DLHCDriver *devp, const LSM303DLHCConfig *config) { { cr[1] = LSM303DLHC_CTRL_REG1_A_XEN | LSM303DLHC_CTRL_REG1_A_YEN | LSM303DLHC_CTRL_REG1_A_ZEN | devp->config->accoutdatarate; -#if LSM303DLHC_ACC_USE_ADVANCED || defined(__DOXYGEN__) +#if LSM303DLHC_USE_ADVANCED || defined(__DOXYGEN__) cr[1] |= devp->config->acclowpower; #endif } @@ -903,7 +903,7 @@ void lsm303dlhcStart(LSM303DLHCDriver *devp, const LSM303DLHCConfig *config) { /* Control register 4 configuration block.*/ { cr[4] = devp->config->accfullscale; -#if LSM303DLHC_ACC_USE_ADVANCED || defined(__DOXYGEN__) +#if LSM303DLHC_USE_ADVANCED || defined(__DOXYGEN__) cr[4] |= devp->config->accendianess | devp->config->accblockdataupdate | devp->config->acchighresmode; @@ -986,7 +986,7 @@ void lsm303dlhcStart(LSM303DLHCDriver *devp, const LSM303DLHCConfig *config) { /* Mode register configuration block.*/ { cr[3] = 0; -#if LSM303DLHC_COMP_USE_ADVANCED || defined(__DOXYGEN__) +#if LSM303DLHC_USE_ADVANCED || defined(__DOXYGEN__) cr[3] |= devp->config->compmode; #endif } -- cgit v1.2.3