diff options
Diffstat (limited to 'testex/STM32/STM32F4xx')
3 files changed, 4 insertions, 3 deletions
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 @@ <intAttribute key="org.eclipse.cdt.launch.ATTR_BUILD_BEFORE_LAUNCH_ATTR" value="2"/>
<stringAttribute key="org.eclipse.cdt.launch.COREFILE_PATH" value=""/>
<stringAttribute key="org.eclipse.cdt.launch.DEBUGGER_REGISTER_GROUPS" value=""/>
-<stringAttribute key="org.eclipse.cdt.launch.FORMAT" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?><contentList><content id="rxbuf-lsm303agrI2CReadRegister-(format)" val="4"/><content id="null-lsm303agrI2CReadRegister-(format)" val="4"/><content id="null-read_raw-(format)" val="1"/><content id="null-lsm303agrStart-(format)" val="4"/><content id="tmp-read_raw.lto_priv.21-(format)" val="0"/></contentList>"/>
+<stringAttribute key="org.eclipse.cdt.launch.FORMAT" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?><contentList><content id="null-lsm303agrStart-(format)" val="0"/><content id="rxbuf-lsm303agrI2CReadRegister-(format)" val="4"/><content id="null-lsm303agrI2CReadRegister-(format)" val="4"/><content id="null-read_raw-(format)" val="1"/><content id="tmp-read_raw.lto_priv.21-(format)" val="0"/><content id="cr[0]-null-lsm303agrStart-(format)" val="4"/><content id="cr[1]-null-lsm303agrStart-(format)" val="4"/><content id="cr[2]-null-lsm303agrStart-(format)" val="4"/><content id="cr[3]-null-lsm303agrStart-(format)" val="4"/><content id="cr[4]-null-lsm303agrStart-(format)" val="4"/></contentList>"/>
<stringAttribute key="org.eclipse.cdt.launch.GLOBAL_VARIABLES" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <globalVariableList/> "/>
<stringAttribute key="org.eclipse.cdt.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <memoryBlockExpressionList/> "/>
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="./build/ch.elf"/>
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
|