From 6198d6d9657a050f7393af68cb7059a7462f5ef2 Mon Sep 17 00:00:00 2001 From: roccomarco Date: Wed, 14 Mar 2018 19:30:08 +0000 Subject: Completed LSM303AGR driver git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11755 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- testex/STM32/STM32F4xx/I2C-LSM303AGR/Makefile | 3 ++- .../debug/STM32F4xx-I2C-LSM303AGR (OpenOCD, Flash and Run).launch | 2 +- testex/STM32/STM32F4xx/I2C-LSM303AGR/main.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'testex') diff --git a/testex/STM32/STM32F4xx/I2C-LSM303AGR/Makefile b/testex/STM32/STM32F4xx/I2C-LSM303AGR/Makefile index 9b3e220a4..c9697e206 100644 --- a/testex/STM32/STM32F4xx/I2C-LSM303AGR/Makefile +++ b/testex/STM32/STM32F4xx/I2C-LSM303AGR/Makefile @@ -193,7 +193,8 @@ CPPWARN = -Wall -Wextra -Wundef # List all user C define here, like -D_DEBUG=1 UDEFS = -DCHPRINTF_USE_FLOAT=1 \ - -DLSM303AGR_USE_ADVANCED=0 -DLSM303AGR_SHARED_I2C=0 + -DLSM303AGR_ACC_USE_ADVANCED=0 -DLSM303AGR_COMP_USE_ADVANCED=0 \ + -DLSM303AGR_SHARED_I2C=0 # Define ASM defines here UADEFS = diff --git a/testex/STM32/STM32F4xx/I2C-LSM303AGR/debug/STM32F4xx-I2C-LSM303AGR (OpenOCD, Flash and Run).launch b/testex/STM32/STM32F4xx/I2C-LSM303AGR/debug/STM32F4xx-I2C-LSM303AGR (OpenOCD, Flash and Run).launch index 41160363c..7a5a52eee 100644 --- a/testex/STM32/STM32F4xx/I2C-LSM303AGR/debug/STM32F4xx-I2C-LSM303AGR (OpenOCD, Flash and Run).launch +++ b/testex/STM32/STM32F4xx/I2C-LSM303AGR/debug/STM32F4xx-I2C-LSM303AGR (OpenOCD, Flash and Run).launch @@ -33,7 +33,7 @@ - + diff --git a/testex/STM32/STM32F4xx/I2C-LSM303AGR/main.c b/testex/STM32/STM32F4xx/I2C-LSM303AGR/main.c index a97d1a38a..d2c7d6b01 100644 --- a/testex/STM32/STM32F4xx/I2C-LSM303AGR/main.c +++ b/testex/STM32/STM32F4xx/I2C-LSM303AGR/main.c @@ -52,7 +52,7 @@ static const LSM303AGRConfig lsm303agrcfg = { LSM303AGR_ACC_FS_4G, LSM303AGR_ACC_ODR_100Hz, #if LSM303AGR_ACC_USE_ADVANCED - LSM303AGR_ACC_MODE_HRES, + LSM303AGR_ACC_MODE_LPOW, LSM303AGR_ACC_BDU_BLOCK, LSM303AGR_ACC_END_LITTLE, #endif -- cgit v1.2.3