aboutsummaryrefslogtreecommitdiffstats
path: root/os/ex/ST/lis3mdl.c
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2019-01-27 14:59:38 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2019-01-27 14:59:38 +0000
commit8c3fc64559b6d0c72a80ee9ced18b307a0820f03 (patch)
treecb3c880bf771a437f341b72a29c6b99dddce1068 /os/ex/ST/lis3mdl.c
parentd149331e119fc733bc8484b01e947bc7c35bb587 (diff)
downloadChibiOS-8c3fc64559b6d0c72a80ee9ced18b307a0820f03.tar.gz
ChibiOS-8c3fc64559b6d0c72a80ee9ced18b307a0820f03.tar.bz2
ChibiOS-8c3fc64559b6d0c72a80ee9ced18b307a0820f03.zip
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
Diffstat (limited to 'os/ex/ST/lis3mdl.c')
-rw-r--r--os/ex/ST/lis3mdl.c8
1 files changed, 4 insertions, 4 deletions
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
}