aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-09-27 21:28:26 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-09-27 21:28:26 +0000
commitc614b182268517ea826629838a4f59a05b8eb6e3 (patch)
tree618b79b2dabe232a66444818f6ce7c8949061d11 /testhal/STM32
parentb80b4fdd87e886d1bd5ff6278c8aa00872e96bc5 (diff)
downloadChibiOS-c614b182268517ea826629838a4f59a05b8eb6e3.tar.gz
ChibiOS-c614b182268517ea826629838a4f59a05b8eb6e3.tar.bz2
ChibiOS-c614b182268517ea826629838a4f59a05b8eb6e3.zip
Improved LPS25H driver and related demo: added multiple register read/write.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9810 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32')
-rw-r--r--testhal/STM32/STM32F4xx/I2C-LPS25H/Makefile2
-rw-r--r--testhal/STM32/STM32F4xx/I2C-LPS25H/main.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/testhal/STM32/STM32F4xx/I2C-LPS25H/Makefile b/testhal/STM32/STM32F4xx/I2C-LPS25H/Makefile
index 057c420fb..6593f01be 100644
--- a/testhal/STM32/STM32F4xx/I2C-LPS25H/Makefile
+++ b/testhal/STM32/STM32F4xx/I2C-LPS25H/Makefile
@@ -201,7 +201,7 @@ CPPWARN = -Wall -Wextra -Wundef
# List all user C define here, like -D_DEBUG=1
UDEFS = -DCHPRINTF_USE_FLOAT=1 -DSHELL_CMD_TEST_ENABLED=0 \
- -DLPS25H_USE_ADVANCED=0
+ -DLPS25H_USE_ADVANCED=1 -DLPS25H_SHARED_I2C=1
# Define ASM defines here
UADEFS =
diff --git a/testhal/STM32/STM32F4xx/I2C-LPS25H/main.c b/testhal/STM32/STM32F4xx/I2C-LPS25H/main.c
index c31fef938..b708fe6d2 100644
--- a/testhal/STM32/STM32F4xx/I2C-LPS25H/main.c
+++ b/testhal/STM32/STM32F4xx/I2C-LPS25H/main.c
@@ -42,8 +42,8 @@ static const I2CConfig i2ccfg = {
static const LPS25HConfig lps25hcfg = {
&I2CD1,
&i2ccfg,
- 0, /* Use default sensitivity.*/
- 0, /* Use default bias.*/
+ NULL, /* Use default sensitivity.*/
+ NULL, /* Use default bias.*/
LPS25H_SAD_VCC, /* SA0 connected to VCC */
LPS25H_ODR_7HZ, /* Output data rate 7 Hz.*/
#if LPS25H_USE_ADVANCED || defined(__DOXYGEN__)