aboutsummaryrefslogtreecommitdiffstats
path: root/testex/STM32/STM32F4xx
diff options
context:
space:
mode:
authorroccomarco <roccomarco@110e8d01-0319-4d1e-a829-52ad28d1bb01>2018-03-14 19:30:08 +0000
committerroccomarco <roccomarco@110e8d01-0319-4d1e-a829-52ad28d1bb01>2018-03-14 19:30:08 +0000
commit6198d6d9657a050f7393af68cb7059a7462f5ef2 (patch)
tree2faebb7d394925138a67c3b790ef2abc80f4bb0a /testex/STM32/STM32F4xx
parentb88dd92734686f6427514a215d545ab4725ca07b (diff)
downloadChibiOS-6198d6d9657a050f7393af68cb7059a7462f5ef2.tar.gz
ChibiOS-6198d6d9657a050f7393af68cb7059a7462f5ef2.tar.bz2
ChibiOS-6198d6d9657a050f7393af68cb7059a7462f5ef2.zip
Completed LSM303AGR driver
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11755 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'testex/STM32/STM32F4xx')
-rw-r--r--testex/STM32/STM32F4xx/I2C-LSM303AGR/Makefile3
-rw-r--r--testex/STM32/STM32F4xx/I2C-LSM303AGR/debug/STM32F4xx-I2C-LSM303AGR (OpenOCD, Flash and Run).launch2
-rw-r--r--testex/STM32/STM32F4xx/I2C-LSM303AGR/main.c2
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="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&lt;contentList&gt;&lt;content id=&quot;rxbuf-lsm303agrI2CReadRegister-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;null-lsm303agrI2CReadRegister-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;null-read_raw-(format)&quot; val=&quot;1&quot;/&gt;&lt;content id=&quot;null-lsm303agrStart-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;tmp-read_raw.lto_priv.21-(format)&quot; val=&quot;0&quot;/&gt;&lt;/contentList&gt;"/>
+<stringAttribute key="org.eclipse.cdt.launch.FORMAT" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&lt;contentList&gt;&lt;content id=&quot;null-lsm303agrStart-(format)&quot; val=&quot;0&quot;/&gt;&lt;content id=&quot;rxbuf-lsm303agrI2CReadRegister-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;null-lsm303agrI2CReadRegister-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;null-read_raw-(format)&quot; val=&quot;1&quot;/&gt;&lt;content id=&quot;tmp-read_raw.lto_priv.21-(format)&quot; val=&quot;0&quot;/&gt;&lt;content id=&quot;cr[0]-null-lsm303agrStart-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;cr[1]-null-lsm303agrStart-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;cr[2]-null-lsm303agrStart-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;cr[3]-null-lsm303agrStart-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;cr[4]-null-lsm303agrStart-(format)&quot; val=&quot;4&quot;/&gt;&lt;/contentList&gt;"/>
<stringAttribute key="org.eclipse.cdt.launch.GLOBAL_VARIABLES" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;globalVariableList/&gt;&#13;&#10;"/>
<stringAttribute key="org.eclipse.cdt.launch.MEMORY_BLOCKS" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;memoryBlockExpressionList/&gt;&#13;&#10;"/>
<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